mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
🐛 Fix logger for LDAP group filter
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
0ea188f8d6
commit
acef820c54
@ -272,7 +272,7 @@ class User(db.Model):
|
|||||||
try:
|
try:
|
||||||
if LDAP_TYPE == 'ldap':
|
if LDAP_TYPE == 'ldap':
|
||||||
groupSearchFilter = "(&({0}={1}){2})".format(LDAP_FILTER_GROUPNAME, ldap_username, LDAP_FILTER_GROUP)
|
groupSearchFilter = "(&({0}={1}){2})".format(LDAP_FILTER_GROUPNAME, ldap_username, LDAP_FILTER_GROUP)
|
||||||
logging.info('groupSearchFilter is {0}'.format(groupSearchFilter))
|
current_app.logger.debug('Ldap groupSearchFilter {0}'.format(groupSearchFilter))
|
||||||
if (self.ldap_search(groupSearchFilter,
|
if (self.ldap_search(groupSearchFilter,
|
||||||
LDAP_ADMIN_GROUP)):
|
LDAP_ADMIN_GROUP)):
|
||||||
role_name = 'Administrator'
|
role_name = 'Administrator'
|
||||||
|
Loading…
Reference in New Issue
Block a user