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

Username postfix for ldap_authenticators #166

Closed swobspace closed 11 years ago

swobspace commented 11 years ago

ldap.rb has a username_prefix, but no username_postfix.

Scenario: We use authentication based on the userprincipalname (an active directory attribute). Our userprincipalnames follows the syntax user@sub.domain.com. But we use only a partial for login: user@sub. In our large organisation there may be identical samaccountnames in different subdomains like smith@sub1 and smith@sub2.

If we can use a username_postfix = '.domain.com', all works fine: the user can use the short form and the authentication uses the full userprincipalname.

mitfik commented 11 years ago

Hi, thanks a lot but could you rebase it and squash to one commit?