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
Commit d2155cc
Browse filesBrowse the repository at this point in the historyBrowse files
LDAP: hash new users' passwords once and only update them when they change
- createsqluser() hashed the password and then CUser::store() hashed the
hash again, so the local copy never matched the real password and the
SQL fallback (ldap_allow_login) could not work.
- For existing users, authenticate() compared a fresh salted hash with
the stored one, which never matches, so every LDAP login tried to save
the user again. That save went through CUser::store(), which needs edit
permission and nobody is logged in yet.
- Missing directory attributes (country, mobile, postalcode... are not in
every schema) raised "Undefined array key" warnings.
createsqluser() now passes the plain password to CUser, the existing-user
path checks it with password_verify() and updates the hash directly only
when it no longer matches, and absent attributes become empty strings.
Refs #320
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016CP89WVmGZ1VVCCZMS6ntN
0 commit comments