dataset/seed/openldap/DEBUG.md

35 lines
933 B
Markdown
Raw Permalink Normal View History

2022-03-08 19:42:28 +01:00
# DEBUG
2022-05-23 08:54:15 +02:00
systemctl stop slapd
usr/sbin/slapd -u ldap -h ldaps:/// -d 256
2022-03-08 19:42:28 +01:00
Search with admin user:
```
2022-05-23 08:54:15 +02:00
ldapsearch -D cn=admin,ou=in,o=gnunux,o=info -y /usr/local/lib/secrets/admin_ldap.pwd -b ou=accounts,ou=in,o=gnunux,o=info
2022-03-08 19:42:28 +01:00
```
Search with nexcloud admin user:
```
2022-05-07 08:11:18 +02:00
USER="cn=lemonldap.in.silique.fr,ou=in,o=silique,o=fr"
2022-03-08 19:42:28 +01:00
PASS="01CXZAjVr4A2iSoqdYIU5CFiC2BCuCQlvCR-wmeG6ns"
2022-05-07 08:11:18 +02:00
DN="ou=accounts,ou=in,o=gnunux,o=info"
2022-03-08 19:42:28 +01:00
ldapsearch -D "$USER" -w "$PASS" -b "$DN"
```
Retrieve the password in nextcloud machine:
```
grep ldapAgentPassword /etc/nextcloud/nextcloud.init
```
Search information with standard user:
2022-07-16 22:16:24 +02:00
ldapsearch -D cn=admin,ou=in,o=gnunux,o=info -w "1vCE09NRW2kxHIpf1PkehOS9bSLZual82saHSBj9RPM" -b cn=gnunux@gnunux.info,ou=users,ou=in,o=gnunux,o=info
# Delete User
ldapdelete -D cn=gnunux@gnunux.info,ou=users,ou=in,o=gnunux,o=info -y /usr/local/lib/secrets/admin_ldap.pwd cn=rougail_test@gnunux.info,ou=in,o=gnunux,o=info