I have installed Samba 2.2.8a onto a Solaris 2.5.1 system from Sunfreeware. Config file has been copied from another similar working system and all that was changed was the netbios name. Using smbpasswd to join the domain does not seem to be working. No message is displayed to say either domain joined or not. secrets file is created and an account is created on the domain. Machine is browsable, but cannot connect to the shares. Error message in log is: [2004/10/13 14:39:14, 0] smbd/password.c:domain_client_validate(1558) domain_client_validate: could not fetch trust account password for domain DOMAINNAME Any ideas? Regards, Stuart *********************************************************************************** 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. ***********************************************************************************
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 smg@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) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBbod2IR7qMdg1EfYRAku7AJ9fMm8DRGzNssZSoT1nzRL1DqNz3gCg1hKQ AzSKc69xROl6TMcxYkawlOo=3pTA -----END PGP SIGNATURE-----
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 "/usr/local/samba/lib/smb.conf" 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=172.17.1.212 bcast=172.17.255.255 nmask=255.255.0.0 Password: cli_init_creds: user username domain DOMAINNAME flgs: 0 ntlmssp_cli_flgs:0 cli_establish_connection: HOSTNAME<00> connecting to PDC<20> (0.0.0.0) - 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 (172.17.255.255) on port 137 read_udp_socket: lastip 172.8.8.8 lastport 137 read: 62 parse_nmb: packet id = 14521 Received a packet of len 62 from (172.8.8.8) port 137 nmb packet from 172.8.8.8(137) 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 172.8.8.8 ( 172.8.8.8 ) 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: 172.8.8.8 Connecting to 172.8.8.8 at port 445 As you can see, no message to say domain joined or not Regards, Stuart -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: 14 October 2004 15:05 To: Stuart Manning Cc: samba@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. *********************************************************************************** -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 smg@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) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBbod2IR7qMdg1EfYRAku7AJ9fMm8DRGzNssZSoT1nzRL1DqNz3gCg1hKQ AzSKc69xROl6TMcxYkawlOo=3pTA -----END PGP SIGNATURE-----
The IP has been changed for security, but yes it's correct. The fact that no message is given is the problem - no message either way. I've setup Samba loads of times and seen successes ans fails at this point, but never nothing. The same happened originally when I tried installing Samba 3. I installed this version as I knew is was working on another system with the same O/S level. This is why I'm stuck. Regards, Stuart -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: 14 October 2004 15:37 To: Stuart Manning Cc: samba@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. *********************************************************************************** -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 smg@goldmedal.co.uk wrote: | Output from smbpasswd with debug level 10: | | ./smbpasswd -D 10 -j DOMAINNAME -r PDC -U username | Password: .... | Connecting to 172.8.8.8 at port 445 | | As you can see, no message to say domain joined | or not You should get some configmarion such as "joined domain BLAH" Is that IP address corret ? Does smbpasswd every connect ? The log file shouldn't just stop. There should be a lot more information after that last line. 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) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBbo8eIR7qMdg1EfYRAnqOAKDmgJmy2x44Wr59ecKftbJa7GQESgCgyGhv GYJF+vpcYEdJ2ybTZq/BP5U=DUPc -----END PGP SIGNATURE-----
Now I'm confused! If it is ending with no message either way, I guessed smbpasswd must be aborting somehow, but not giving STDERR, so I just did a truss on smbpasswd. It worked! ...giving the messge Joing Domain. Tried again normally, but same result - no passwd. Started samba, connected fine. The end result has been achieved - ie samba working, but not sure why join failed until I ran it under truss. Anyone any ideas? Thanks for your reply Jerry, I guess it got me to think about the problem from another angle. Regards, Stuart -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: 14 October 2004 15:37 To: Stuart Manning Cc: samba@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. *********************************************************************************** -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 smg@goldmedal.co.uk wrote: | Output from smbpasswd with debug level 10: | | ./smbpasswd -D 10 -j DOMAINNAME -r PDC -U username | Password: .... | Connecting to 172.8.8.8 at port 445 | | As you can see, no message to say domain joined | or not You should get some configmarion such as "joined domain BLAH" Is that IP address corret ? Does smbpasswd every connect ? The log file shouldn't just stop. There should be a lot more information after that last line. 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) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBbo8eIR7qMdg1EfYRAnqOAKDmgJmy2x44Wr59ecKftbJa7GQESgCgyGhv GYJF+vpcYEdJ2ybTZq/BP5U=DUPc -----END PGP SIGNATURE-----