Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Multiple authenticators fails when one or more of them are not loaded #233

Closed
viranch opened this issue Dec 5, 2014 · 0 comments
Closed

Comments

@viranch
Copy link
Contributor

viranch commented Dec 5, 2014

I'm using multiple authenticators, LDAP and SQLMd5 (in that order). The latter is not loaded into the path, so init_authenticators! loads the first one, and next raises NameError causing the rescue block to again load all authenticators, and add it to the auth array.

Now auth array has 3 elements (LDAP appended twice and then SQLMd5). This causes auth.zip(config[:authenticators]) to fail.

This looks like a trivial fix, just put rescue block inside the loop.

viranch added a commit to viranch/rubycas-server that referenced this issue Dec 5, 2014
mitfik added a commit that referenced this issue Jan 21, 2015
Fix bug #233 with multiple authenticators
@mitfik mitfik closed this as completed Jan 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants