[Samba] Problem joining a domain.

David Moron david.moron at openwired.net
Mon Mar 20 20:24:39 GMT 2006


Hi,

I'm running Samba/openLDAP on a FC4 and I'm trying to make it work as a 
PDC.  I installed all the software using yum instead smbldap-tools.

I've done all the configuration but, when I try to join a Windows XP 
Professional named 'pc4' to the domain it fails with "Error joining the 
domain OPENWIRED. Username not found". And no machine account is created 
under ou=Computers,dc=openwired,dc=net

If I run /usr/local/sbin/smbldap-useradd -w 'pc4$' it works OK.

smbd.log at the end.

When I start SAMBA it binds OK to the LDAP using the 
cn=root,dc=openwired,dc=net account and it has all privileges granted in 
slapd.conf.

What's happening

Thank you in advance,

# net getlocalsid
SID for domain PDC-SRV is: S-1-5-21-1518432643-1164322876-3946144605

# net getdomainsid
SID for domain PDC-SRV is: S-1-5-21-1518432643-1164322876-3946144605
SID for domain OPENWIRED is: S-1-5-21-27105391-1648776033-2601101416

smd.conf
	[global]
	workgroup = OPENWIRED
         netbios name = PDC-SRV


smbd.log:
[2005/03/20 21:07:24, 2] smbd/reply.c:reply_special(236)
   netbios connect: name1=PDC-SRV         name2=PC4
[2005/03/20 21:07:24, 2] smbd/reply.c:reply_special(243)
   netbios connect: local=pdc-srv remote=pc4, name type = 0
[2005/03/20 21:07:24, 2] smbd/sesssetup.c:setup_new_vc_session(608)
   setup_new_vc_session: New VC == 0, if NT4.x compatible we would close 
all old resources.
[2005/03/20 21:07:24, 2] smbd/sesssetup.c:setup_new_vc_session(608)
   setup_new_vc_session: New VC == 0, if NT4.x compatible we would close 
all old resources.
[2005/03/20 21:07:24, 2] lib/smbldap.c:smbldap_open_connection(692)
   smbldap_open_connection: connection opened
[2005/03/20 21:07:24, 2] passdb/pdb_ldap.c:init_sam_from_ldap(499)
   init_sam_from_ldap: Entry found for user: root
[2005/03/20 21:07:24, 2] auth/auth.c:check_ntlm_password(305)
   check_ntlm_password:  authentication for user [root] -> [root] -> 
[root] succeeded
[2005/03/20 21:07:24, 2] smbd/server.c:exit_server(609)
   Closing connections
[2005/03/20 21:07:24, 2] smbd/reply.c:reply_special(236)
   netbios connect: name1=PDC-SRV         name2=PC4
[2005/03/20 21:07:24, 2] smbd/reply.c:reply_special(243)
   netbios connect: local=pdc-srv remote=pc4, name type = 0
[2005/03/20 21:07:24, 2] smbd/sesssetup.c:setup_new_vc_session(608)
   setup_new_vc_session: New VC == 0, if NT4.x compatible we would close 
all old resources.
[2005/03/20 21:07:24, 2] smbd/sesssetup.c:setup_new_vc_session(608)
   setup_new_vc_session: New VC == 0, if NT4.x compatible we would close 
all old resources.
[2005/03/20 21:07:24, 2] lib/smbldap.c:smbldap_open_connection(692)
   smbldap_open_connection: connection opened
[2005/03/20 21:07:24, 2] passdb/pdb_ldap.c:init_sam_from_ldap(499)
   init_sam_from_ldap: Entry found for user: root
[2005/03/20 21:07:24, 2] auth/auth.c:check_ntlm_password(305)
   check_ntlm_password:  authentication for user [root] -> [root] -> 
[root] succeeded
[2005/03/20 21:07:24, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2580)
   Returning domain sid for domain OPENWIRED -> 
S-1-5-21-27105391-1648776033-2601101416
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
[2005/03/20 21:07:24, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
   _samr_create_user: Running the command 
`/usr/local/sbin/smbldap-useradd -w 'pc4$' gave 2
[2005/03/20 21:07:24, 2] smbd/server.c:exit_server(609)
   Closing connections

-- 
David Morón Ruano





More information about the samba mailing list