Skip to content

Password never expires: OpenLDAP support for individual users #7981

@DavidePrincipi

Description

@DavidePrincipi

Proposed solution

  • Enable the "password never expires" feature for individual users in the OpenLDAP account provider, as previously available in Active Directory.

  • Add UI implementation for toggling the flag both in cluster-admin and user portal interfaces.

  • For compat/reference, the absence of the pwdChangedTime attribute can be used for this purpose, and the following can be used to clear it:

     ldapmodify -e relax <<'EOF'
     dn: uid=username,ou=People,dc=example,dc=com
     changetype: modify
     delete: pwdChangedTime
     EOF
    

Alternative solutions

  • Keep the current approach: only the administrator password never expires, others must follow the expiration policy or manage it manually with CLI and attributes.

Additional context

  • The -e relax parameter is required for the ldapmodify command to succeed.

  • Feature was available for AD, not for OpenLDAP. See the original proposal and feedback in NethServer/dev#7503. Consider admin expectations after upgrade/migration from AD/legacy releases.

  • When the pwdChangedTime is removed, the cluster-admin UI already provides a visual feedback:

    Image

See also


Thanks to @nrauso @lucagasparini

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    ToDo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions