From 24dd7b6347655c2d431d393093eb3b084a08ca9e Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 10 Jul 2017 15:11:28 +0800 Subject: [PATCH] update docker config --- config_docker.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config_docker.py b/config_docker.py index 2600e595a..9208d855f 100644 --- a/config_docker.py +++ b/config_docker.py @@ -93,6 +93,19 @@ class Config: # You can set jumpserver usage url here, that when user submit wizard redirect to USER_GUIDE_URL = '' + # LDAP Auth settings + AUTH_LDAP = False + AUTH_LDAP_SERVER_URI = 'ldap://localhost:389' + AUTH_LDAP_BIND_DN = 'cn=admin,dc=jumpserver,dc=org' + AUTH_LDAP_BIND_PASSWORD = '' + AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=people,dc=jumpserver,dc=org" + AUTH_LDAP_USER_ATTR_MAP = { + "username": "cn", + "name": "sn", + "email": "mail" + } + AUTH_LDAP_START_TLS = False + def __init__(self): pass