mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
better exception handling for ldap errors
This commit is contained in:
parent
51043837f0
commit
3f2d14327c
@ -176,7 +176,7 @@ class User(db.Model):
|
|||||||
for member in group[0][1]['memberOf']:
|
for member in group[0][1]['memberOf']:
|
||||||
result += self.ad_recursive_groups( member.decode("utf-8") )
|
result += self.ad_recursive_groups( member.decode("utf-8") )
|
||||||
return result
|
return result
|
||||||
except:
|
except ldap.LDAPError as e:
|
||||||
logging.exception("Recursive AD Group search error")
|
logging.exception("Recursive AD Group search error")
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user