cancel
Showing results for 
Search instead for 
Did you mean: 

Using mail attribute for LDAP authentication

dtenney
Champ in-the-making
Champ in-the-making
I wanted to know if there was a way to allow the mail attribute in LDAP to be used as a username for authentication in Alfresco.

We have successfully logged in using the uid as the username.

The current setup is:
ldap.authentication.userNameFormat=uid\=%s,o\=example.com,o\=hosting,dc\=example,dc\=local

We want the setup to be:
ldap.authentication.userNameFormat=mail\=%s,o\=example.com,o\=hosting,dc\=example,dc\=local

But it does not work. No error messages in the log, just login failed.

Thanks!
1 REPLY 1

dward
Champ on-the-rise
Champ on-the-rise
Currently the LDAPAuthenticationComponent requires the user ID attribute to be part of the DN and for the DN to have a fixed format.

But when I finally get around to fixing this bug

https://issues.alfresco.com/jira/browse/ETHREEOH-2782

We'll support search-based resolution of the user DN from the user ID attribute. Could be soon. Until then, it's not going to work.