When adding a new user under the dc=example,dc=com
using Apache Directory Studio, I have this tree structure:
dc=example,dc=com
|-- ou = engineering
|-- cn = Lawrence K.H Loh+o=IKEA+sn=Loh+uid=lawrence+displayName=Lawrence
Below is the attribute list for the cn
.
- objectClass = inetOrgPerson
- objectClass = organizationalPerson
- objectClass = person
- objectClass = top
- cn = Lawrence K.H Loh
- sn = Loh
- displayName = Lawrence
- o = IKEA
- uid = lawrence
- userPassword = SSHA hashed password
There is this error LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: Attempt to lookup non-existant entry
when I connect this entry through uid=lawrence,ou=engineering,dc=example,dc=com
. But it is working fine if I'm using this cn=Lawrence K.H Loh+o=IKEA+sn=Loh+uid=lawrence+displayName=Lawrence,ou=engineering,dc=example,dc=com
. May I know how can I switch to uid=lawrence
instead of the long name for authentication?