Skip to content

LDAP auto-provisioning only works when public self-registration is on, which is the default #437

Open

Description

@caseysoftware

w2p_Authenticators_LDAP::createsqluser() stores the new user with CUser::store(null, true). CUser::canCreate() (L150) only allows such "externally created" users when activate_external_user_creation is true, which is the setting for public sign-up (newuser.php, do_user_aed.php).

So an admin who turns off public sign-up also silently turns off LDAP auto-provisioning: first-time LDAP users are refused. Keeping LDAP working means leaving public sign-up open, and it is open by default (install/sql/001_base_install.sql L91).

Fix:

  • Let directory-sourced users be created without depending on the public sign-up setting. Phase 0 moves this into w2p_Provisioning_Service; a direct flag on CUser is enough for now.
  • Default activate_external_user_creation to false on fresh installs. Upgrades keep their current value.

Blocks #458.

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

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