0001-ldap-do-not-crash-on-timeout-in-get_ldap_group_dns-5.patch
src/authentic2/backends/ldap_backend.py | ||
---|---|---|
1008 | 1008 |
results = self.normalize_ldap_results(results) |
1009 | 1009 |
except ldap.NO_SUCH_OBJECT: |
1010 | 1010 |
pass |
1011 |
except ldap.TIMEOUT: |
|
1012 |
log.error('connection timed out while retrieving group DNs') |
|
1011 | 1013 |
else: |
1012 | 1014 |
group_dns.update(dn for dn, attrs in results) |
1013 | 1015 |
return group_dns |
1014 |
- |