aspose file tools*
The moose likes Spring and the fly likes Spring Security LDAP authentication Multiple dn pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Security LDAP authentication Multiple dn pattern" Watch "Spring Security LDAP authentication Multiple dn pattern" New topic
Author

Spring Security LDAP authentication Multiple dn pattern

Varshini Priya
Ranch Hand

Joined: Feb 17, 2008
Posts: 93

We are using spring security & using LDAP to authenticate our web application. In our LDAP configuration, there are multiple userndn patterns available. I would like to know how to configure multiple userdn patterns in the applicationContext-security.xml file. I have the below configuration specified



When I provide the above configuration in the xml file, users corresponding to Dn pattern for a specific location will only be able to login. I want to know how we can configure multiple userdn patterns in the xml file.

Any help on this is much appreciated. Thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Wouldn't you just want to use the ldap user details service instead of a custom provider?

Also, you can create multiple UserDetailsService(s) and add them and authentication will loop through them till one authenticates the user. So each one would have a different dn pattern and work with what you are looking for.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Security LDAP authentication Multiple dn pattern