mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
drs_utils: Check for presence of more_flags attribute directly
This more directly indicates what we are trying to achieve. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852 Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Jo Sutton
parent
df719a28f1
commit
cf848e35d1
@@ -201,15 +201,15 @@ class drs_Replicate(object):
|
||||
self.replication_state = self.net.replicate_init(self.samdb, lp, self.drs, invocation_id)
|
||||
self.more_flags = 0
|
||||
|
||||
def _should_retry_with_get_tgt(self, error_code, req):
|
||||
@staticmethod
|
||||
def _should_retry_with_get_tgt(error_code, req):
|
||||
|
||||
# If the error indicates we fail to resolve a target object for a
|
||||
# linked attribute, then we should retry the request with GET_TGT
|
||||
# (if we support it and haven't already tried that)
|
||||
supports_ext = self.supports_ext
|
||||
|
||||
return (error_code == werror.WERR_DS_DRA_RECYCLED_TARGET and
|
||||
supports_ext & DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V10 and
|
||||
hasattr(req, "more_flags") and
|
||||
(req.more_flags & drsuapi.DRSUAPI_DRS_GET_TGT) == 0)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user