cs0815
cs0815

Reputation: 17418

LDAP username length

I am testing a product which claims to fully support LDAP. We try to secure this product with our local Active Directory but I have noticed that usernames longer than 21 characters are cut off. I did some Google searches to determine whether LDAP only supports username less equal 21 characters but could not find any information. Does LDAP only support up to 21 characters?

Upvotes: 5

Views: 12524

Answers (1)

ig0774
ig0774

Reputation: 41287

No. LDAP by itself doesn't place any restriction on the username, especially as LDAP doesn't really specify which attribute qualifies as the username. The DN is similarly unencumbered. However, on Active Directory, the sAMAccountName attribute only supports 20 characters.

Upvotes: 8

Related Questions