Results 1 to 7 of 7

Thread: How to use active directory over LDAP for authorization only using spring security3.1

  1. #1

    Default How to use active directory over LDAP for authorization only using spring security3.1

    Hi All,

    I am new to spring security. We built a security framework with active directory over LDAP by using plain filters and java classes. But we are planning to move that to spring security and use spring security only for authorization authentication is done through siteminder. Can you please provide me the guidance about how to use pre-authentication filters in this case?

    Thanks.

  2. #2

    Default

    Any ideas/comments?

  3. #3
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    Please refer to the Pre-Authentication Scenarios section of the reference.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  4. #4

    Default

    Rob,

    As I mentioned earlier we are using siteMinder for authentication. Once the user is authenticated HTTP cookie is set with SSO (User) id only, no password details are maintained in that cookie. I have reviewed the Pre-Authentication Scenarios section of the reference. Based on the notes user id and password both are required to create authentication token. How can I handle that in my scenario?

    Thanks

  5. #5

    Default

    Rob,

    Just reviewed the source code for RequestHeaderAuthenticationFilter. My earlier question is answered. But have another question about UserDetailsService. Can we implement this class to read data from Active directory?

  6. #6
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    Yes you can easily provide a custom UserDetailsService implementation. Alternatively, you may be able to use <ldap-userdetails-service> to leverage the built in LdapUserDetailsService.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  7. #7

    Default

    Rob,

    Thanks for the quick reply. I have reviewed the following classes for implementing LdapUserDetailsService.

    1. FilterBasedLdapUserSearch

    2. SpringSecurityLdapTemplate

    FilterBasedLdapUserSearch calls searchForSingleEntry(SpringSecurityLdapTemplate) method to search for user in LDAP. But we are using Actvie directory over LDAP. Do you see any issue with the way DirContext object is created in searchForSingleEntry method. if yes then how can I solve that issue?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •