From 2c9a4ef86e5fa68091fc392740e7b04af759b698 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 28 Apr 2022 20:33:07 +1200 Subject: libcli:util: Update werror table Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- python/samba/drs_utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'python') diff --git a/python/samba/drs_utils.py b/python/samba/drs_utils.py index feab89b0d8e..a71da6eedd3 100644 --- a/python/samba/drs_utils.py +++ b/python/samba/drs_utils.py @@ -200,10 +200,7 @@ class drs_Replicate(object): # (if we support it and haven't already tried that) supports_ext = self.supports_ext - # TODO fix up the below line when we next update werror_err_table.txt - # and pull in the new error-code - # return (error_code == werror.WERR_DS_DRA_RECYCLED_TARGET and - return (error_code == 0x21bf and + return (error_code == werror.WERR_DS_DRA_RECYCLED_TARGET and supports_ext & DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V10 and (req.more_flags & drsuapi.DRSUAPI_DRS_GET_TGT) == 0) -- cgit v1.2.3