From 896f508265f3b3180be7f26313c86060b4f2f785 Mon Sep 17 00:00:00 2001 From: Marisa Date: Tue, 16 Sep 2025 14:41:41 -0400 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c3155f2..8487fa3 100644 --- a/README.md +++ b/README.md @@ -127,11 +127,34 @@ Enter LDAP Password: adding new entry "uid=marisa,ou=Supergirls,dc=example,dc=com" ``` -verify the user (marisa) has been added to tje Supergirls OU +verify the user (marisa) has been added to the Supergirls OU ``` 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_ +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 +``` +root@example:/home# vim modify_user.ldif +dn: uid=marisa,ou=Supergirls,dc=example,dc=com +changetype: modify +replace: mail +mail: marisa.kirisame@example.com +``` +run the modify file, when asked for the root password, remember in the dockerfile by default is _admin_ +``` +root@example:/home# ldapmodify -x -D "cn=admin,dc=example,dc=com" -W -f modify_user.ldif +Enter LDAP Password: +modifying entry "uid=marisa,ou=Supergirls,dc=example,dc=com" +``` + +verify the _mail_ attribute of the user marisa has been changed to marisa.kirisame@example.com +``` +root@example:/home# ldapsearch -x -LLL -b "dc=example,dc=com" "(uid=marisa)" mail +dn: uid=marisa,ou=Engineering,dc=example,dc=com +mail: marisa.kirisame@example.com +``` \ No newline at end of file