LDAP Authentication failures in 8.0.4
Created by: klandaika
When a new LDAP user attempts to login and user's email domain is not on the Restricted domains for sign-ups list, the following error is be displayed:
Could not authorize you from Ldapmain because "Undefined method 'provider' for nil:nilclass".
It would be nice to have the message say that user's domain is not authorized instead, as the above message is cryptic and not representative of the issue at all. It made me feel that there is a problem with LDAP config or something along those lines, when in reality it was as simple as adding the domain to restricted sign-ups list.