Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smbpasswd error when trying to join domain

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
here is a transcript of what i do:

[root@linuxserver root]# smbpasswd -j domain -r ntserver
modify_trust_password: unable to connect to SMB server on machine NTSERVER. Error was : code 0.
2002/03/03 05:53:57 : change_trust_account_password: Failed to change password for domain domain.
Unable to join domain domain.

i have been unable to figure out what error code 0 means. Any ideas? I have correctly configured my smb.conf file:

[global]
netbios name = linuxserver
security = domain
workgroup = domain
password server = ntserver
encrypt passwords = yes
wins server = IP_OF_NTSERVER
name resolve order = lmhosts wins hosts bcast

my ntserver is windows 2000 server. i have tried joining the domain both while running the samba daemons and while not running samba daemons and still get the same error. The part I think I may be doing wrong is adding the computer to the active directory. i add linuxserver to the computers container and check the "allow pre-windows 2000 computers to use this account" box and set the users or group to domain computers. any help would be appreciated.
 
Hi,





Did you try it with the -U option :





smbpasswd -j DOMAIN -U Administrator -r NTSERVER





Otherwise it looks correct. You would indeed first need to add the samba server's netbios name (linuxserver) on the W2K box under MMC for Active Directory User and Computers.





From that error message maybe theres a netbios name resolution problem (i.e. it can't find ntserver). As you obviouly have a wins server active, you could specify the type of name resolution on the smbpasswd command like this :





smbpasswd -R WINS -j DOMAIN -U Administrator -r NTSERVER





Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top