rubycas/rubycas-server

How to use ActiveDirectory authenticator to connect two AD domain

lafrinte opened this issue · 0 comments

I want to authenticate users from two ActiveDirectories.I configure the authenticator in config.yml like this:

------------------------------------------------------------------------------------------------

authenticator:
class: CASServer::Authenticators::ActiveDirectoryAuth
ad:
domain: domain1.com
server: 192.168.1.2
base: CN=User,DC=domain1,DC=com

authenticator:
class: CASServer::Authenticators::ActiveDirectoryAuth
ad:
domain: domain2.com
server: 192.168.1.3
base: CN=User,DC=domain2,DC=com

------------------------------------------------------------------------------------------------

But only the last authenticator is worked. How can make both of them to work.