Aug 5th, 2010, 01:59 PM
Alternative to DN binding
I have the following problem, I am currently using the ldap BindAuthenticator in 3.0.3. This requires a DN pattern to do the binding but our ldap does not store the username in its DN pattern (Dunno if this is the norm, I am new to ldap). So the username cannot be used for binding. Do I have to implement my own BindAuthenticator to bind with the username? What would be the best approach.
Last edited by Angel; Aug 6th, 2010 at 01:08 PM.
Aug 6th, 2010, 08:40 AM
Is the username stored as an attribute in the LDAP directory? If so, what attribute? Is that attribute part of the DN, or not?
Peter Mularien | Blog
Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
SCJP 5, Oracle DBA
Any postings are my own opinion, and should not be attributed to my employer or clients.
Aug 6th, 2010, 01:01 PM
Yes it is being stored in the sAMAccountName attribute in the form of email@example.com, it may be stored in another attribute but I cannot remember. The username is not part of the DN.
Aug 10th, 2010, 08:12 AM
Nevermind, this was easily solved using FilterBasedLdapUserSearch.