NameError: uninitialized constant Net::LDAP::AuthAdapter::Sasl::MaxSaslChallenges
There's a bug in the current version of net-ldap that causes this exception if you're trying to use SASL authentication. The fix was just merged (https://github.com/ruby-ldap/ruby-net-ldap/pull/281), but the maintainers are waiting to merge a few more PRs before releasing a new version.
I'm opening this issue for anyone else who might stumble across this error.
To the maintainer(s) of omniauth-ldap, once net-ldap gets a version bump, can we point the gemspec at the new version?
Update
ruby-ldap was just recently bumped to version 0.16.0. This bump fixes the SASL bug mentioned in this issue. Changelog: https://github.com/ruby-ldap/ruby-net-ldap/blob/master/History.rdoc
This version also enables hostname verification, which allows you to pass an option to ruby-ldap to force it to check if the LDAP server's hostname actually matches the name on the SSL certificate returned (it doesn't do this by default). See also: https://github.com/intridea/omniauth-ldap/issues/58
Is there any chance of bumping to 0.16.0? Until then, as far as I can tell omniauth-ldap does not support SASL auth.
Also uninitialized constant OmniAuth::Strategies::SAML::ValidationError