I tried to add with a pdbedit -a -uAdministrator -U0 -G0 -d99
I get an error message : "Unable to find user..."

> the user must be present in the ldap, pdbedit is going to add the
samba 
> attributes.

I create an Administrator account in my /etc/passwd and tried again with
the
pdbedit command, it asked me to type password this time (Woot!!!) but at
this end :

samba found the user as a unix other. 

> Ok

[...]
smbldap_open: already connected to the LDAP server
ldapsam_modify_entry: Failed to add user dn= uid=Administrator,ou=Users
with: No such object
ldapsam_add_sam_account: failed to modify/add user with uid =
Administrator
(dn = uid=Administrator,ou=Users)
Unable to add user! (does it already exist?)

> But in your smb.conf yo have ldap backend, so samba try to find the
user 
> in the ldap to add samba attributes.


Une id�e ?
>Il faut � samba un utilisateur unix ( soit dans /etc/passwd soit dans
>l'annuaire avec les attributs posix account positionn�s ).
>Ensuite si tu choisis ldap comme backend samba doit trouver
l'utilisateur >dans l'annuaire. ( avec ou sans posix account )
> En r�sum� Il y a deux niveaux distincts :
>1 au niveau unix ( uid gid shell group dans  /etc/passwd ou
posixaccount, contr�l� par /etc/nsswitch.conf  )  
>1 au niveau samba ( dans le cas du backend ldap c'est pdbedit -a qui
>rajoute les attributs samba n�cessaires dans l'annuaire)
> 
>Dans ton cas ton user administrator existe au niveau unix mais il doit
>avoir une entr�e dans l'annuaire avec uid=administrator. ( pdbedit fait
le travail et rajoute les �l�ments samba n�cessaires ) 
> J'esp�re que c'est plus clair.   


A way to restart with an empty LDAP may be ?
>Non 

thanks all (et specialement Jean Marc)
>De rien.

>Jean-Marc




--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to