[Samba] Samba / LDAP : map uid to another field ?

Sylvain debian.roxx at gmail.com
Fri May 25 02:42:10 MDT 2012

I found « username map [script] » directive in smb.conf man page. I've
tested P1234=jdoe and it's works. Next is to make a one line script to make
this dynamic ^^
Another solution was to make a proxy LDAP instead of a replica.

Thanks for the help !
If anyone have another idea, i'm open :)

2012/5/24 Sylvain <debian.roxx at gmail.com>

> Unfortunaly, I cannot do this since the two attributes are different
> meaning and are used in another applications so maybe with a local LDAP
> replica and use of your tricks will works. I will try if there are no
> "Samba" solutions.
> Thanks :)
> 2012/5/24 <miguelmedalha at sapo.pt>
>> I am not sure if you can act on the samba side. Maybe you should think
>> the other way around. You can map one attribute to another inside the LDAP
>> server.
>> You would use the "map attribute" directive to map
>> "eduPersonPrincipalName" to "uid". Both logins would then authenticate
>> against "uid".

More information about the samba mailing list