rubycas / rubycas-server

Provides single sign-on authentication for web applications, implementing the server-end of Jasig's CAS protocol.
http://rubycas.github.com
Other
628 stars 270 forks source link

How to use ActiveDirectory authenticator to connect two AD domain #187

Closed lafrinte closed 11 years ago

lafrinte commented 11 years ago

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.