diff --git a/README.md b/README.md index e6452aa..6c68d54 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ dn: uid=marisa,ou=Engineering,dc=example,dc=com mail: marisa.kirisame@example.com ``` -### _Modify user password_ + ### _Reset user password_ In the likely common event that we forgot the old password of an specific user, we need to reset it.\ @@ -223,6 +223,12 @@ 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. +\ +If we want to change the password as the user marisa, we need to use the user's _plain password_ we entered when we created it: +``` +root@example:/etc/ldap# ldappasswd -H ldap:/// -x -D "uid=marisa,ou=Supergirls,dc=example,dc=com" -w _plain password_ -s newpassword "uid=marisa,ou=Supergirls,dc=example,dc=com" +``` +With this commmand we changed the user marisa password's from _plain password_ to literally "newpassword", change this as needed. ### _Query as an specific user_