[Samba] Can't join domain - no message

smg at goldmedal.co.uk smg at goldmedal.co.uk
Thu Oct 14 14:29:21 GMT 2004

Output from smbpasswd with debug level 10:

./smbpasswd -D 10 -j DOMAINNAME -r PDC -U username
Initialising global parameters
params.c:pm_process() - Processing configuration file
Processing section "[global]"
doing parameter workgroup = DOMAINNAME
doing parameter netbios name = HOSTNAME
handle_netbios_name: set global_myname to: HOSTNAME
doing parameter server string = My Server
doing parameter security = DOMAIN
doing parameter encrypt passwords = Yes
doing parameter password server = *
doing parameter admin log = Yes
doing parameter log file = /var/log/samba
doing parameter dns proxy = No
doing parameter invalid users = root
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: ROLE_DOMAIN_MEMBER
codepage_initialise: client code page = 850
load_client_codepage: loading codepage 850.
Adding chars 0x85 0xb7 (l->u = True) (u->l = True)
Adding chars 0xa0 0xb5 (l->u = True) (u->l = True)
Adding chars 0x83 0xb6 (l->u = True) (u->l = True)
Adding chars 0xc6 0xc7 (l->u = True) (u->l = True)
Adding chars 0x84 0x8e (l->u = True) (u->l = True)
Adding chars 0x86 0x8f (l->u = True) (u->l = True)
Adding chars 0x91 0x92 (l->u = True) (u->l = True)
Adding chars 0x87 0x80 (l->u = True) (u->l = True)
Adding chars 0x8a 0xd4 (l->u = True) (u->l = True)
Adding chars 0x82 0x90 (l->u = True) (u->l = True)
Adding chars 0x88 0xd2 (l->u = True) (u->l = True)
Adding chars 0x89 0xd3 (l->u = True) (u->l = True)
Adding chars 0x8d 0xde (l->u = True) (u->l = True)
Adding chars 0xa1 0xd6 (l->u = True) (u->l = True)
Adding chars 0x8c 0xd7 (l->u = True) (u->l = True)
Adding chars 0x8b 0xd8 (l->u = True) (u->l = True)
Adding chars 0xd0 0xd1 (l->u = True) (u->l = True)
Adding chars 0xa4 0xa5 (l->u = True) (u->l = True)
Adding chars 0x95 0xe3 (l->u = True) (u->l = True)
Adding chars 0xa2 0xe0 (l->u = True) (u->l = True)
Adding chars 0x93 0xe2 (l->u = True) (u->l = True)
Adding chars 0xe4 0xe5 (l->u = True) (u->l = True)
Adding chars 0x94 0x99 (l->u = True) (u->l = True)
Adding chars 0x9b 0x9d (l->u = True) (u->l = True)
Adding chars 0x97 0xeb (l->u = True) (u->l = True)
Adding chars 0xa3 0xe9 (l->u = True) (u->l = True)
Adding chars 0x96 0xea (l->u = True) (u->l = True)
Adding chars 0x81 0x9a (l->u = True) (u->l = True)
Adding chars 0xec 0xed (l->u = True) (u->l = True)
Adding chars 0xe7 0xe8 (l->u = True) (u->l = True)
Adding chars 0x9c 0x0 (l->u = False) (u->l = False)
load_dos_unicode_map: 850
load_unicode_map: loading unicode map for codepage 850.
load_unix_unicode_map: ISO8859-1 (init_done=0, override=0)
load_unicode_map: loading unicode map for codepage ISO8859-1.
added interface ip= bcast= nmask=
cli_init_creds: user username domain DOMAINNAME flgs: 0
cli_establish_connection: HOSTNAME<00> connecting to PDC<20> ( -
username [DOMAINNAME]
resolve_lmhosts: Attempting lmhosts lookup for name PDC<0x20>
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error
was No such file or directory
resolve_hosts: Attempting host lookup for name PDC<0x20>
resolve_wins: Attempting wins lookup for name PDC<0x20>
wins_srv_count: WINS status: 0 servers.
resolve_wins: WINS server resolution selected and no WINS servers listed.
name_resolve_bcast: Attempting broadcast lookup for name PDC<0x20>
bind succeeded on port 0
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 4
socket option SO_BROADCAST = 32
Could not test socket option TCP_NODELAY.
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 0
socket option SO_RCVBUF = 0
socket option SO_SNDLOWAT = 0
socket option SO_RCVLOWAT = 0
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
Sending a packet of len 50 to ( on port 137
read_udp_socket: lastip lastport 137 read: 62
parse_nmb: packet id = 14521
Received a packet of len 62 from ( port 137
nmb packet from header: id=14521 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=PDC<20> rr_type=32 rr_class=1 ttl=300000
    answers   0 char `.....   hex 6000AC110101
Got a positive name query response from ( )
parse_nmb: packet id = 123
parse_nmb: packet id = 123
parse_nmb: packet id = 123
parse_nmb: packet id = 123
parse_nmb: packet id = 123
parse_nmb: packet id = 123
internal_resolve_name: returning 1 addresses:
Connecting to at port 445

As you can see, no message to say domain joined or not



-----Original Message-----
From: Gerald (Jerry) Carter [mailto:jerry at samba.org]
Sent: 14 October 2004 15:05
To: Stuart Manning
Cc: samba at lists.samba.org
Subject: Re: [Samba] Can't join domain - no message

Gold Medal Travel E Mail disclaimer

This e-mail contains proprietary information some or all of which may 
be legally privileged.  It is for the intended recipient only.  If an
addressing or transmission error has misdirected this e-mail, please 
notify the author by replying to this e-mail.  If you are not the 
intended recipient you must not use, disclose, distribute, copy, print or
rely on this e-mail.

Hash: SHA1

smg at goldmedal.co.uk wrote:

| domain_client_validate: could not fetch trust account
| password for domain DOMAINNAME

Looks like it didn't really join the domain.  Run smbpasswd
with debug level of 10 and look for any errors at the tail end of the
join process.

cheers, jerry
- ---------------------------------------------------------------------
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"If we're adding to the noise, turn off this song"--Switchfoot (2003)
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the samba mailing list