diff --git a/README.md b/README.md index a5cb222..2cb1fe8 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ now we have an **Organizational Unit (ou=People, ou=Group, etc.)** with users an ## _Users administrative tasks_ -### _Add users into LDAP directories_ +### _Add users_ create a new LDAP directory called Supergirls (LDAP OU) with the following data ``` @@ -136,7 +136,7 @@ root@example:/# ldapsearch -x -LLL -b "dc=example,dc=com" "(uid=marisa)" dn dn: uid=marisa,ou=Supergirls,dc=example,dc=com ``` -### _Modify users from LDAP directories_ +### _Modify users attributes_ create a new .ldif file with the attributes we want to change\ in this case we want to modify the _mail_ marisa@example.com of the user (_uid_) marisa from the group (_ou_) Supergirls @@ -162,7 +162,18 @@ dn: uid=marisa,ou=Engineering,dc=example,dc=com mail: marisa.kirisame@example.com ``` -### _Query a LDAP directory as a user_ +### _Modify user password_ + +in order to change a user password we can run the following command, in this example we are changing user (_uid_) marisa password from the Organizational Unit (_ou_) Supergirls +``` +root@example:/etc/ldap# ldappasswd -H ldap:/// -x -D "uid=marisa,ou=Supergirls,dc=example,dc=com" -W -S "uid=marisa,ou=Supergirls,dc=example,dc=com" +New password: plainpasswd +Re-enter new password: plainpasswd +Enter LDAP Password: oldplainpasswd +``` +plainpasswd being the new password we want to use, and oldplainpasswd, the last plain password we were using + +### _Query as an specific user_ we already created the user (_uid_) marisa, and established the user's own password using slappasswd\ now we are gonna query our LDAP server using the user (_uid_) marisa credentials, and _the password we entered during slappasswd, called plain password_