Don't require LDAP group parameters if LDAP_GROUP_SECURITY is not chosen

This commit is contained in:
Ivan Filippov 2016-04-11 10:22:40 -06:00
parent bf094c59cd
commit 05944e8585

View File

@ -20,6 +20,7 @@ LDAP_PASSWORD = app.config['LDAP_PASSWORD']
LDAP_SEARCH_BASE = app.config['LDAP_SEARCH_BASE']
LDAP_TYPE = app.config['LDAP_TYPE']
LDAP_GROUP_SECURITY = app.config['LDAP_GROUP_SECURITY']
if LDAP_GROUP_SECURITY == True:
LDAP_ADMIN_GROUP = app.config['LDAP_ADMIN_GROUP']
LDAP_USER_GROUP = app.config['LDAP_USER_GROUP']