diff --git a/README.md b/README.md index c73418d..77156c7 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,18 @@ Enter LDAP Password: oldplainpasswd ``` plainpasswd being the new password we want to use, and oldplainpasswd, the last plain password we were using +### _Reset user password_ + +In the likely common event that we forgot the password of an specific user, we need to reset it.\ +In this example we forgot the _plain password_ of the _uid_ marisa, we can reset it with this command: +``` +root@example:/etc/ldap# ldappasswd -H ldap:/// -x -D "cn=admin,dc=example,dc=com" -W -S "uid=marisa,ou=Supergirls,dc=example,dc=com" +New password: newpasswd +Re-enter new password: newpasswd +Enter LDAP Password: admin +``` +Note we need to use the **root** password (_admin_ by default) in the last query ("Enter LDAP Password") to reset an user's password. + ### _Query as an specific user_ we already created the user (_uid_) marisa, and established the user's own password using slappasswd\