Results 1 to 4 of 4

Thread: Alternative to DN binding

Hybrid View

  1. #1

    Default 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

  2. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    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.


  3. #3

    Default

    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.

  4. #4

    Default

    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
  •