diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2020-11-30 12:16:10 +0100 |
---|---|---|
committer | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2020-11-30 12:16:10 +0100 |
commit | d7ea1d4c872a0ef39cce7a6bb6d2b9c9fd6c205e (patch) | |
tree | 509fcc27647de80e229c24babd4685ba04b45802 /ldap3/extend/microsoft/dirSync.py | |
parent | 2bcee5c91d65796532aef1b15f6c8c0c16197aee (diff) | |
parent | 96fb2df0e33b34a4dbb75577de8589a8611759c4 (diff) |
Update upstream source from tag 'upstream/2.8.1'
Update to upstream version '2.8.1'
with Debian dir 4d1ac29b7ae225ca99fb367a07e2e8183bc94036
Diffstat (limited to 'ldap3/extend/microsoft/dirSync.py')
-rw-r--r-- | ldap3/extend/microsoft/dirSync.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ldap3/extend/microsoft/dirSync.py b/ldap3/extend/microsoft/dirSync.py index db403a1..e5dd8ae 100644 --- a/ldap3/extend/microsoft/dirSync.py +++ b/ldap3/extend/microsoft/dirSync.py @@ -77,8 +77,11 @@ class DirSync(object): if not self.connection.strategy.sync:
response, result = self.connection.get_response(result)
else:
- response = self.connection.response
- result = self.connection.result
+ if self.connection.strategy.thread_safe:
+ _, result, response, _ = result
+ else:
+ response = self.connection.response
+ result = self.connection.result
if result['description'] == 'success' and 'controls' in result and '1.2.840.113556.1.4.841' in result['controls']:
self.more_results = result['controls']['1.2.840.113556.1.4.841']['value']['more_results']
|