LDAPAccountManager / lam

LDAP Account Manager
https://www.ldap-account-manager.org
Other
429 stars 69 forks source link

"Password does not expire" option sent even when not modified #340

Closed paschulke closed 3 months ago

paschulke commented 3 months ago

Issue Summary

When modifying a property of a user account in an MS Active Directory environment with the Password does not expire option set, LAM sends an LDAP modifyRequest with the userAccountControl attribute and AttributeValue 66048 (Enabled, Password Doesn’t Expire) even if the checkbox was not altered by the user. This results in issues for users who have permissions to edit basic LDAP properties (such as telephone or address) but are not allowed to change password policies; thereby not allowing any modification of such LDAP accounts.

Steps to Reproduce

  1. Ensure a user account has the Password does not expire option set.
  2. Edit the user account without changing the Password does not expire option.
  3. Save the changes.
  4. Observe that an LDAP modifyRequest is sent with the userAccountControl attribute and AttributeValue 66048.

This behavior can be confirmed by observing the request in a running Wireshark session.

Affected Versions