dataset/seed/openldap/DEBUG.md
Emmanuel Garette 57c108aea0 add gitea tests
2022-07-17 09:46:30 +02:00

933 B

DEBUG

systemctl stop slapd usr/sbin/slapd -u ldap -h ldaps:/// -d 256

Search with admin user:

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

Search with nexcloud admin user:

USER="cn=lemonldap.in.silique.fr,ou=in,o=silique,o=fr"
PASS="01CXZAjVr4A2iSoqdYIU5CFiC2BCuCQlvCR-wmeG6ns"
DN="ou=accounts,ou=in,o=gnunux,o=info"
ldapsearch -D "$USER" -w "$PASS" -b "$DN"

Retrieve the password in nextcloud machine:

grep ldapAgentPassword /etc/nextcloud/nextcloud.init

Search information with standard user:

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