diff --git a/config_template.py b/config_template.py index 1e8fbdc..f9aad2e 100644 --- a/config_template.py +++ b/config_template.py @@ -25,7 +25,7 @@ SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') SQLALCHEMY_TRACK_MODIFICATIONS = True # LDAP CONFIG -LDAP_TYPE = 'ldap' # use 'ad' for MS Active Directory +LDAP_TYPE = 'ldap' LDAP_URI = 'ldaps://your-ldap-server:636' LDAP_USERNAME = 'cn=dnsuser,ou=users,ou=services,dc=duykhanh,dc=me' LDAP_PASSWORD = 'dnsuser' @@ -34,6 +34,17 @@ LDAP_SEARCH_BASE = 'ou=System Admins,ou=People,dc=duykhanh,dc=me' LDAP_USERNAMEFIELD = 'uid' LDAP_FILTER = '(objectClass=inetorgperson)' +## AD CONFIG +#LDAP_TYPE = 'ad' +#LDAP_URI = 'ldaps://your-ad-server:636' +#LDAP_USERNAME = 'cn=dnsuser,ou=Users,dc=domain,dc=local' +#LDAP_PASSWORD = 'dnsuser' +#LDAP_SEARCH_BASE = 'dc=domain,dc=local' +## You may prefer 'userPrincipalName' instead +#LDAP_USERNAMEFIELD = 'sAMAccountName' +## AD Group that you would like to have accesss to web app +#LDAP_FILTER = 'memberof=cn=DNS_users,ou=Groups,dc=domain,dc=local' + # Github Oauth GITHUB_OAUTH_ENABLE = False GITHUB_OAUTH_KEY = 'G0j1Q15aRsn36B3aD6nwKLiYbeirrUPU8nDd1wOC' diff --git a/config_template_docker.py b/config_template_docker.py index b7a9ffa..3031748 100644 --- a/config_template_docker.py +++ b/config_template_docker.py @@ -24,7 +24,7 @@ SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') SQLALCHEMY_TRACK_MODIFICATIONS = True # LDAP CONFIG -LDAP_TYPE = 'ldap' # use 'ad' for MS Active Directory +LDAP_TYPE = 'ldap' LDAP_URI = 'ldaps://your-ldap-server:636' LDAP_USERNAME = 'cn=dnsuser,ou=users,ou=services,dc=duykhanh,dc=me' LDAP_PASSWORD = 'dnsuser' @@ -33,6 +33,17 @@ LDAP_SEARCH_BASE = 'ou=System Admins,ou=People,dc=duykhanh,dc=me' LDAP_USERNAMEFIELD = 'uid' LDAP_FILTER = '(objectClass=inetorgperson)' +## AD CONFIG +#LDAP_TYPE = 'ad' +#LDAP_URI = 'ldaps://your-ad-server:636' +#LDAP_USERNAME = 'cn=dnsuser,ou=Users,dc=domain,dc=local' +#LDAP_PASSWORD = 'dnsuser' +#LDAP_SEARCH_BASE = 'dc=domain,dc=local' +## You may prefer 'userPrincipalName' instead +#LDAP_USERNAMEFIELD = 'sAMAccountName' +## AD Group that you would like to have accesss to web app +#LDAP_FILTER = 'memberof=cn=DNS_users,ou=Groups,dc=domain,dc=local' + #Default Auth BASIC_ENABLED = True SIGNUP_ENABLED = True