[Samba] Problem joining a domain.

Craig White
Mon, 20 Mar 2006 23:24:39 -0000

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