[Samba] Samba and LDAP: Trouble adding Win XP machines to the domain

Asier Baranguán abaranguan at elpagestion.com
Wed Jun 27 08:14:45 GMT 2007

mikelOn escribió:

> This morning I wanted to review the smbldap-useradd perl script to see if
> there is any place (config file or so) where I can indicate the base number
> I want for the machines.
> ¿Do I need to set that "base" uidNumber somewhere? ¿Why must it be set to
> above than 50000?
> ¿Did you ever experience anything similar?

(I suppose you have executed the smbldap-populate script)

When you execute the smbldap-populate you can pass some parameters to set the first 
uid/gid number that will be assigned to the users/groups. This scripts read the value from 
the sambaDomainName LDAP entry and updates it when adding groups/users. I think this 
values are the uidNumber and gidNumber attributes, but I'm not sure.

As LAM doesn't use the smbldap scripts it has different starting numbers (see the lam.conf 
file, usually at /usr/share/ldap-account-manager/config) AFAIK this is used to separate 
regular unix accounts from LDAP accounts to prevent overlapping.

Look at your /etc/passwd file and slapcat output for id collision. Perhaps that was your 

More information about the samba mailing list