[Samba] Could not find base dn trying to join a machine into the domain
sisu .
npillao at hotmail.com
Thu Dec 30 08:19:15 MST 2010
First of all thanks for your reply. Finally I Could fix it thanks your comment. It is not necessary to do it with root user but is necessary to do it with uid 0, since I changed that id to my administrator user and finally it workes
smbldap-populate -a Administrator
smbldap-pupulate man page says: -"a: name Your local administrator login name (default: Administrator)"
Before:
#getent passwd |grep Administrator
Administrator:x:998:512:Netbios Domain Administrator:/home/Administrator:/bin/false
#id Administrator
uid=998(Administrator) gid=512(Domain Admins) groups=512(Domain Admins)
Now:
#getent passwd |grep Administrator
Administrator:x:0:512:Netbios Domain Administrator:/home/Administrator:/bin/false
#id Administrator
uid=0(Administrator) gid=512(Domain Admins) groups=512(Domain Admins)
> I think you should mention 'root' as username and password should be
> which you put while running 'smbldap-populate'.
> You can change 'root' password using
> root# smbpasswd root
> command
> Thanks
>
>
> On 12/30/10, sisu . <npillao at hotmail.com> wrote:
> >
> > Hi all,
> >
> > Trying to set up a samba PDC with 389-fd LDAP I get and error when I try to
> > join my first windows machine to the domain.
> > I did the smbldap-populate and all seems ok. The point is when I add a
> > machine through command line as:
> >
> > usr/sbin/smbldap-useradd -w "testmaschine4"
> >
> > I don't get any error, below I can demonstrate it:
> >
> > #getent passwd |grep 515
> > testmachine$:*:5001:515:Computer:/dev/null:/bin/false
> > testmaschine2$:*:5002:515:Computer:/dev/null:/bin/false
> >
> > But the problem occurs when through the windowsXP box I try to join to the
> > domain. I type my Administrator user with his password but then I get an
> > error dialogue which says:
> > "The user name could not be found"
> >
> > When I try to find out more info in the administrator.log on samba server I
> > can see these lines:
> >
> > check_ntlm_password: authentication for user [Administrator] ->
> > [Administrator] -> [Administrator] succeeded
> > Returning domain sid for domain XXXXX ->
> > S-1-5-21-2019295574-2912910430-xxxxxx
> > Could not find base dn, to get next uidNumber at
> > /usr/lib/perl5/vendor_perl/5.8.8/smbldap_tools.pm line 1181
> > _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
> > "vmwinxpbox$"' gave 2
> >
> > I don't understand why smbldap-useradd is able to add that machine through
> > command line but it is not able through windows box
> >
> >
> >
> > Useful info:
> >
> > smbldap-populate file:
> >
> > suffix="o=company,dc=lan"
> > computersdn="ou=machines,${suffix}"
> > sambaUnixIdPooldn="sambadomainname=domainname,ou=domains,o=company,dc=lan"
> > defaultComputerGid="515"
> >
> >
> > smb.cnf:
> >
> > ldap suffix = dc=lan
> > ldap machine suffix = ou=machines,o=company
> > add machine script = /usr/sbin/smbldap-useradd -w "%u"
> >
> >
> > Thank you in advance. any advice will be grateful :)
> >
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
> >
>
>
> --
> http://linuxinterviews.blogspot.com
More information about the samba
mailing list