Announcement Announcement Module
Collapse
No announcement yet.
LDAP authentication userDnPattern not sufficient Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • LDAP authentication userDnPattern not sufficient

    Hi all,
    I need to be able to find users by criteria defined in attributes in the LDAP account. Therefore I wish to search LDAP for users, rather than just by their DN.

    Currently my authenticator looks like this:
    Code:
    	<bean id="authenticator"
    		class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator">
    		<constructor-arg ref="contextSource" />
    		<property name="userDnPatterns">
    			<list>
    				<value>uid={0},ou=users</value>
    			</list>
    		</property>
    	</bean>

    But I wish to be able to pass some sort of search filter to the BindAuthenticator. I tried doing this by adding a voter to the accessDecisionManager but discovered that was the wrong route as this really is an authenticator time decision. Any hints to what would let me set a search filter in the authenticator?

  • #2
    Rtfm

    I guess I should have RTFM

    http://static.springframework.org/sp...html/ldap.html

    section 10.4.5

    Comment


    • #3
      LDAP authentication userDnPattern not sufficient

      I noticed that you resolved this issue, by finding information in the reference. Would you be willing to share what the resolution was? I have a similar issue and am curious to see what you came up with vs. what I have found.

      Thank you!

      Comment

      Working...
      X