[Samba] Problem joining a domain.

David Moron david.moron at openwired.net
Tue Mar 21 09:41:31 GMT 2006


Hi,

I've just tried to fix the SID for my domain and actually both have the 
same value, but still doesn't work:

SID for domain PDC-SRV is: S-1-5-21-27105391-1648776033-2601101416
SID for domain OPENWIRED is: S-1-5-21-27105391-1648776033-2601101416

I also want to know the correct syntax for the file smb.conf, i mean, in 
the smb logs apears these lines when i try to log from my windows machine:

[...]
[2005/03/21 10:21:29, 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/21 10:21:29, 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/21 10:21:29, 2] smbd/server.c:exit_server(609)
   Closing connections

Those errors are from this line in smb.conf:

add machine script = /usr/local/sbin/smbldap-useradd -w '%u

there is a missing ' at the end of the line but when i add it:

[...]
[2005/03/21 10:29:07, 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 9
[2005/03/21 10:29:07, 2] smbd/server.c:exit_server(609)
   Closing connections

and if i use " the log is:

[...]
[2005/03/21 10:33:56, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2580)
   Returning domain sid for domain OPENWIRED -> 
S-1-5-21-27105391-1648776033-2601101416
[2005/03/21 10:33:57, 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 9
[2005/03/21 10:33:57, 2] smbd/server.c:exit_server(609)
   Closing connections


I think all the problem came from this file, so i would like to know the 
  correct syntax for it.

Thank you in advance.


Craig White escribió:
> On Mon, 2006-03-20 at 21:24 +0100, David Moron wrote:
>> 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
> ----
> presuming that PDC-SRV is the PDC for OPENWIRED DOMAIN, then those
> should be the same and you need to fix it in LDAP
> 
> Craig
> 

-- 
David Morón Ruano
Coordinador de Proyectos

Grupo OpenWired, S.L.
Caballero, 87 bajos - 08029 - Barcelona (Spain)
Tel (+34) 93/410 75 70 - Fax (+34) 93/419 45 91
www.openwired.net, www.tecnologialinux.com




More information about the samba mailing list