[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDAP authentication using email address






2014-07-28 6:01 GMT-04:00 Gokul nath <gokulnath@hotmail.com>:
Hi,

I have configured openldap and it is working for username and password authentication.

How do i make my email address as login id in LDAP?Â

You can use rwm overlay like example above:
Â
########################################################################
### RWM - Overlay ao Rewrite de bind - Deve vir antes do "database"
########################################################################
moduleload   rwm
overlay    Ârwm
rwm-rewriteEngine   Âon
rwm-rewriteMap ldap  Âattr2dn "ldaps:///dc=example,dc=com?dn?sub?"
rwm-rewriteContext   bindDN
rwm-rewriteRule    Â"^mail=[^,]+@[^,]+$" "${attr2dn($0)}" ":@I"Â



my working scenario is below.

User : user1, user2
Group: Group1, Group2

I have added user1 to Group1 and done apache authentication using Group1. Login is working if i add any user to that group. i would like to make email address as login id. Please suggest how to configure the same.

Thanks
Gokul