diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/join.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/join.py b/python/samba/join.py index c2d92547d58..343b1a50934 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -1031,7 +1031,8 @@ class DCJoinContext(object): # if the connection was disconnected, then reconnect if (enum == ldb.ERR_OPERATIONS_ERROR and - 'NT_STATUS_CONNECTION_DISCONNECTED' in estr): + ('NT_STATUS_CONNECTION_DISCONNECTED' in estr or + 'NT_STATUS_CONNECTION_RESET' in estr)): ctx.logger.warning("LDB connection disconnected. Reconnecting") ctx.samdb = SamDB(url="ldap://%s" % ctx.server, session_info=system_session(), |