Update README.md

This commit is contained in:
Marisa 2025-09-23 09:18:16 -04:00
parent cdcc07ed7f
commit 4d3dbd965a

View File

@ -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
### <ins>_Reset user password_</ins>
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.
### <ins>_Query as an specific user_</ins>
we already created the user (_uid_) marisa, and established the user's own password using slappasswd\