From 2d60ec9deee1ea46792a7231666568fd1d866fdd Mon Sep 17 00:00:00 2001 From: Vitaly Kornilov Date: Tue, 28 Jul 2020 13:48:09 +0300 Subject: [PATCH] :wrench: LDAP authentication config with better default values Co-authored-by: Mathieu Brunot --- backend/src/uxbox/config.clj | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/src/uxbox/config.clj b/backend/src/uxbox/config.clj index 4827cc16a6..8922de4425 100644 --- a/backend/src/uxbox/config.clj +++ b/backend/src/uxbox/config.clj @@ -43,22 +43,22 @@ :allow-demo-users true :registration-enabled true :registration-domain-whitelist "" - :debug-humanize-transit true}) + :debug-humanize-transit true - ;; LDAP auth disabled by default + ;; LDAP auth disabled by default. Set ldap-auth-host to enable ;:ldap-auth-host "ldap.mysupercompany.com" - ;:ldap-auth-port 636 - ;:ldap-auth-version "3" + ;:ldap-auth-port 389 + :ldap-auth-version "3" ;:ldap-bind-dn "cn=admin,dc=ldap,dc=mysupercompany,dc=com" ;:ldap-bind-password "verysecure" ;:ldap-auth-ssl false - ;:ldap-auth-starttls true + ;:ldap-auth-starttls false ;:ldap-auth-base-dn "ou=People,dc=ldap,dc=mysupercompany,dc=com" - ;:ldap-auth-user-query "(|(uid=$username)(mail=$username))" - ;:ldap-auth-username-attribute "uid" - ;:ldap-auth-email-attribute "mail" - ;:ldap-auth-fullname-attribute "displayname" - ;:ldap-auth-avatar-attribute "jpegPhoto" + :ldap-auth-user-query "(|(uid=$username)(mail=$username))" + :ldap-auth-username-attribute "uid" + :ldap-auth-email-attribute "mail" + :ldap-auth-fullname-attribute "displayName" + :ldap-auth-avatar-attribute "jpegPhoto"}) (s/def ::http-server-port ::us/integer) (s/def ::http-server-debug ::us/boolean)