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

Asier Baranguán abaranguan at elpagestion.com
Wed Jun 27 06:35:37 GMT 2007

Edmundo Valle Neto escribió:

>> If your users are Windows users you should add an '-a' here, and add 
>> the users with the '-a' flag. Like this:
>>     add user script = /usr/sbin/smbldap-useradd -m -a "%u"
> Not really, theres nothing wrong with that. If you use the "User 
> Manager" windows application, the posix account is created and samba 
> creates the rest. If you are using the shell, then yes, -a is needed 
> (but typing it IN THE SHELL not inside smb.conf). You can consult the 
> samba documentation or idealx documentation about setting those options.

I don't use the "User Manager" app: I create the users from the shell with some home-made 

>>>         delete user script = /usr/sbin/smbldap-userdel -r "%u"
>>>         add group script = /usr/sbin/smbldap-groupadd "%g"
>> You should add '-a -p' here:
>>          add group script = /usr/sbin/smbldap-groupadd -m -a "%g"

> Same thing. And I dont know what "-m" means to smbldap-groupadd script.

Ooops, "Fat fingers"! It should be '-p'

Then... which'd be the problem? If this settings are not related to the errors, perhaps 
it's a DNS-related question.

Thanks for the explanation.

More information about the samba mailing list