开发者

Spring Ldap security to authenticate in multiple domains

开发者 https://www.devze.com 2023-02-27 00:37 出处:网络
I have 3 ldap domains like: ldap://domain1:389开发者_运维百科/DC=xxx,DC=xxx ldap://domain2:389/DC=xxx,DC=xxx,DC=xxx

I have 3 ldap domains like:

  ldap://domain1:389开发者_运维百科/DC=xxx,DC=xxx
  ldap://domain2:389/DC=xxx,DC=xxx,DC=xxx
  ldap://domain3:389/DC=xxx,DC=xxx,DC=xxx

I need a mechanism if the user is not found in domain 1 it should search in domain 2 like wise. can you please guide me what is the best possible way I can do it using spring.


You may use multiple Spring authentication-providers

<authentication-manager>
    <ldap-authentication-provider ...></ldap-authentication-provider>
    <ldap-authentication-provider ...></ldap-authentication-provider>
    <ldap-authentication-provider ...></ldap-authentication-provider>
</authentication-manager>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号