From 5a07b47a2188dcc724e1f125f7debefbefb35efb Mon Sep 17 00:00:00 2001 From: yo Date: Mon, 7 Aug 2023 14:07:24 +0200 Subject: [PATCH] Update README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4309c0e..dc34f9b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ UPDATE: Yay, the day has come! ## Usage Start glapi with parameters on command line: ``` -glapi -ldap-host ldap://ldap.example.org -ldap-base-dn dc=example,dc=org -ldap-user cn=yo,dc=example,dc=org -ldap-pass 'here_is_the_password' +glapi -ldap-host ldap://ldap.example.org -ldap-base-dn ou=configurations,dc=example,dc=org -ldap-auth-base-dn ou=users,dc=example,dc=org -ldap-user cn=yo,dc=example,dc=org -ldap-pass 'here_is_the_password' ``` or point it to a configuration file : @@ -40,7 +40,8 @@ SSL_PRIVATE_KEY=/etc/ssl/private/server.key ## Querying API ### Search Entries Search LDAP entries through the whole subtree, specifying organizationalUnit, commnName, objectClass, attribute to retrieve. -Each of these parameters can be replaced by "ALL" to act like a wildcard. +Each of these parameters can be replaced by "ALL" to act like a wildcard. +"admin" user should exist in LDAP_AUTH_BASE_DN and searchable with cn=admin ``` % curl -u admin:admin http://127.0.0.1:8080/ou=domains/yo/person | jq [