On Sun, 7 Jun 2009, Paweł Madej wrote:
Hello,
Thanks for comments
If my LDAP directory was only for that email i could do this, because even webmail developers recomend use of mail in RDN (roundcube webmail). but I plan to have rather wider use of DIT so cn=user1,dc=example,dc=com is easiest solution for me.
maybe are there in LDAP some aliases which I could use to map email to user? email is in my case rather unique per user.
Greets Pawel
On Sun, 7 Jun 2009 14:37:39 +0200 (CEST), Piotr Wadas pwadas@dtpw.pl
First and simple solution is to setup cn value exactly the same as "mail" value, or, even simplier, use "mail=user1@domain.com" as RDN element. You could also use ldap proxy to map mail attribute to cn attribute (or reverse) in virtual directory.
Like said - consider a ldapproxy, e.g. man slapd-meta && man slapd-ldap && man slapo-rwm. Probably "ldap aliases" you mean are called referrals (?)
P.