开发者

Spring Ldap security to authenticate in multiple domains

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜