Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

28.5. Changing Password Expiration Date with Immediate Effect


You can use the ipa user-mod or ldapmodify utilities to change the expiration date of a user password.

Changing the expiration date of a user password by using the ipa user-mod utility

  • To enforce an immediate change of the expiration date, use ipa user-mod command with the --password-expiration option. For example, to set the expiration date to 2016-02-03 20:37:34 in the UTC time zone, run:
    # ipa user-mod user_name --password-expiration='2016-02-03 20:37:34Z'
    Copy to Clipboard Toggle word wrap
    Note that the command uses a generalized time format and setting the expiration date to 20160203203734Z is also possible.

Changing the expiration date of a user password by using the ldapmodify utility

To enforce an immediate change of the expiration date, reset the krbPasswordExpiration attribute value in LDAP.
To change the expiration date for a single user:
  1. Set the new value for the krbPasswordExpiration attribute for the user entry by using the following command:
     # ldapmodify -D "cn=Directory Manager" -w secret -h server.example.com -p 389 -vv
    
    dn: uid=user_name,cn=users,cn=accounts,dc=example,dc=com
    changetype: modify
    replace: krbPasswordExpiration
    krbPasswordExpiration: 20160203203734Z
    Copy to Clipboard Toggle word wrap
    The krbPasswordExpiration format follows generalized time format YYYMMDDHHMMSS.0Z.
  2. Press Ctrl+D to confirm and send the changes to the server.
To edit multiple entries at once, use ldapmodify with the -f option to reference an LDIF file.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat