Update README.md
This commit is contained in:
parent
19e3713cec
commit
ac51ba5416
17
README.md
17
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_
|
||||
### <ins>_Add users_</ins>
|
||||
|
||||
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_
|
||||
### <ins>_Modify users attributes_</ins>
|
||||
|
||||
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_
|
||||
### <ins>_Modify user password_</ins>
|
||||
|
||||
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
|
||||
|
||||
### <ins>_Query as an specific user_</ins>
|
||||
|
||||
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_
|
||||
|
Loading…
Reference in New Issue
Block a user