You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LDAP login reports success when creating the local user fails #440
In w2p_Authenticators_LDAP::authenticate() (L77–80), a first-time LDAP user goes through createsqluser() and the method then returns true whatever happened. createsqluser() stores the contact first, ignores the result of $u->store() (L204), and returns nothing.
When the user can't be created (for example #437, or an invalid username), the bind succeeds and the login then fails later in CAppUI::login() with a generic "Login Failed". Each attempt leaves another orphan contact.
Fix: have createsqluser() return whether the user was stored, delete the contact when it wasn't, and return false from authenticate() in that case.
Activity
LDAP: fail the login when the local user can't be created