Spring Security and multiple LDAP -
i have scenario have connect multiple ldaps, each 1 different country. if user tries login, have verify whether user setup in of ldap, can authenicated , granted access roles defined ldap. possible spring security framework?
yes can authenticate against multiple ldap servers. if want try each ldap instance, can this:
<ldap-server id="exampleldap" url="ldap://example.org:389/dc=springframework,dc=org" /> <ldap-server id="springldap" url="ldap://springframework.org:389/dc=springframework,dc=org" /> <authentication-manager> <ldap-authentication-provider user-search-filter="(uid={0})" user-search-base="ou=people" server-ref="exampleldap"/> <ldap-authentication-provider user-search-filter="(uid={0})" user-search-base="ou=people" server-ref="springldap"/> </authentication-manager>
Comments
Post a Comment