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.
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 raisesNameError
causing the rescue block to again load all authenticators, and add it to theauth
array.Now
auth
array has 3 elements (LDAP appended twice and then SQLMd5). This causesauth.zip(config[:authenticators])
to fail.This looks like a trivial fix, just put rescue block inside the loop.