Smbpasswd() fails to join NT Domain

Tadd Cameron Tadd at iname.com
Wed Nov 21 11:29:12 GMT 2001


Hi I have been working on this for a few days now and need a little
assistance.
I am having trouble getting my samba machine to join a NT domain.  I
cannot seem get past test #3 in the DIAGNOSIS.txt file.

Red Hat 7.2
Samba 2.2.2 Have tried from CVS source, source tarball and the binaries
(samba-2.2.2-20011013.i386.rpm).
PDC = NT 4.0 SP6a

I made sure there was no machine account named REDHAT on the PDC in
server manager.
I shut down the smbd, nmbd and winbind daemons
I deleted /etc/samba/secrets.tbf
Then issued the command

[root at redhat samba]# smbpasswd -j DOMAIN -r PDC -Dusername%password
error connecting to PCD
Unable to join domain DOMAIN.
[root at redhat samba]#

without account and password
[root at redhat samba]# smbpasswd -j DOMAIN -r PDC
attempt_netbios_session_request: PCD rejected the session for *SMBSERVER
with error Called name not present
modify_trust_password: machine PCD rejected the NetBIOS session request.
Error was code 0
2001/11/21 00:02:18 : change_trust_account_password: Failed to change
password for domain DOMAIN
Unable to join domain DOMAIN.
[root at redhat samba]#

Test #1 passes testparm smb.conf
Test #2 can ping REDHAT from PCD and can ping PCD from REDHAT
Test #3 follows;
-----------------------
[root at redhat samba]# smbclient -L PCD
added interface ip=10.0.18.231 bcast=10.0.18.255 nmask=255.255.255.0
session request to PDC failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
[root at redhat samba]#
--------------------------
here is my smb.conf file
--------------------------

[GLOBAL]
workgroup = DOMAIN
netbios name = REDHAT
comment = Samba server (v%V)
security = domain
password server = PCD
log file = /var/log/samba/log.%m
os level = 0
nt acl support = yes
nt pipe support = yes
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins server = 10.0.18.5
dnsproxy = no
domain master = no
local master = no
preferred master = no
name resolve order = lmhosts host wins bcast

[homes]
comment = "home directories"
path = /samba/home/%S
writeable = yes

[public]
comment = "Public"
path = /samba/public
browseable = yes
writeable = yes
;end smb.conf
----------------------






More information about the samba mailing list