cancel
Showing results for 
Search instead for 
Did you mean: 

Ldap works when using cn but not with uid

mastertoto
Champ in-the-making
Champ in-the-making
Ok, here's the problem:

If i set up my
ldap.authentication.userNameFormat=uid=%s,ou=employee,o=company,c=country

and enter th userid to login,the user is never found, but if I configure it to use th cn instead of uid,
ldap.authentication.userNameFormat=cn=%s,ou=employee,o=company,c=country

and log in with my first and last name it works.

Does anyone know what the problem is, and ideally has a solution?
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

Simple bind can only use the full DN of the user.
The form with uid is not the DN.

Andy

javauser007
Champ in-the-making
Champ in-the-making
Hi Mastertoto,
It is working fine for me in my machine.
i'm suing alfresco labs 3.0 stable with openldap 2.2.29
Can u provide ur environment so dat i can look into that.
caheck ur configurations ones again both in sync file and authentication file
ldap-authentication.properties, and ldap-synchronisation.properties
ldap.synchronisation.userIdAttributeName=uid put it in sync file.


Regards,
Alfreso user