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

Edmundo Valle Neto edmundo.valle at terra.com.br
Wed Jun 27 00:33:54 GMT 2007


Asier Baranguán escreveu:
> El Martes, 26 de Junio de 2007 10:23, mikelOn escribió:
>   
>>         add user script = /usr/sbin/smbldap-useradd -m "%u"
>>     
>
> 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.

The difference is that with "-a" you will receive an error, but the user 
will be created anyway.

>>         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.
 
>> P.S.: ¿Can it have anything to do with other stuff such as the DNS server?
>>     
>
> Perhaps yes... I have a Samba server with OpenLDAP acting as a PDC and we use 
> dnsmasq as our DNS server. It's small, fast and deals very well with Samba 
> and Windows clients. We use it also as DHCP server so all the machines have 
> the correct IP, DNS server, WINS Server and so on.
>
> One question... the user "mikelvm" is a regular UNIX user or one added with 
> the smbldap-useradd tool?
>   


Regards.

Edmundo Valle Neto


More information about the samba mailing list