[Samba] Samba3 & LDAP Can't join domain with Win2k Pro

Jean-Marc Pouchoulon jean-marc.pouchoulon at ac-montpellier.fr
Tue Oct 28 22:44:34 GMT 2003


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







More information about the samba mailing list