• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring Security LDAP authentication Multiple dn pattern

 
Ranch Hand
Posts: 100
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic