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 auto-provisioning only works when public self-registration is on, which is the default #437
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.
Activity