Skip to content

LDAP login reports success when creating the local user fails #440

Closed

Description

@caseysoftware

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.

Blocks #458.

Fix before Phase 0 of the Identity Layer proposal (#435).

Activity

  1. added a commit that references this issue on Oct 24, 2026
    1b37646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions