-
Aug 5th, 2010, 01:59 PM
#1
Alternative to DN binding
Hi,
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.
Thanks,
Angel
Last edited by Angel; Aug 6th, 2010 at 01:08 PM.
Reason: Clarity
-
Aug 6th, 2010, 08:40 AM
#2
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
#3
Yes it is being stored in the sAMAccountName attribute in the form of username@domain.com, it may be stored in another attribute but I cannot remember. The username is not part of the DN.
Thanks.
-
Aug 10th, 2010, 08:12 AM
#4
Nevermind, this was easily solved using FilterBasedLdapUserSearch.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules