From 2fdd814674149d02c3ec8d58a6a17ac839840c76 Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 23 Nov 2018 17:09:23 +0100 Subject: [PATCH] add first ldap support --- conf/config.json.example | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/config.json.example b/conf/config.json.example index 8442e68..7582500 100644 --- a/conf/config.json.example +++ b/conf/config.json.example @@ -74,14 +74,14 @@ "apiKey": "change this" }, "ldap": { - "url": "ldap://change_this", + "url": "ldap://localhost:389", "bindDn": null, "bindCredentials": null, - "searchBase": "change this", - "searchFilter": "change this", - "searchAttributes": ["change this"], - "usernameField": "change this e.g. cn", - "useridField": "change this e.g. uid", + "searchBase": "ou=users,dc=yunohost,dc=org", + "searchFilter": "(&(|(objectclass=posixAccount))(uid=%uid))", + "searchAttributes": ['displayName', 'mail'], + "usernameField": "cn", + "useridField": "uid", "tlsOptions": { "changeme": "See https://nodejs.org/api/tls.html#tls_tls_connect_options_callback" }