-
Dec 4th, 2012, 04:00 PM
#1
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.
-
Dec 5th, 2012, 09:34 AM
#2
-
Dec 5th, 2012, 09:43 AM
#3
Please refer to the Pre-Authentication Scenarios section of the reference.
-
Dec 5th, 2012, 10:04 AM
#4
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
-
Dec 5th, 2012, 10:19 AM
#5
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?
-
Dec 5th, 2012, 10:28 AM
#6
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.
-
Dec 5th, 2012, 11:14 AM
#7
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
-
Forum Rules