Issue #2844592 by bricas: LDAP auth'ed users can login even when "Who can register accounts?" is set to "Administrators only"