2014-07-28 6:01 GMT-04:00 Gokul nath <[email protected]>:

> 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
>

Reply via email to