From: Jennifer Sutton Date: Tue, 6 Aug 2024 03:07:44 +0000 (+1200) Subject: drs_utils: Remove unnecessary qualification X-Git-Tag: tevent-0.17.0~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0828fc3b06aae5649b9c3ea1d442cfd22ad6c33;p=thirdparty%2Fsamba.git drs_utils: Remove unnecessary qualification BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852 Signed-off-by: Jennifer Sutton Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/drs_utils.py b/python/samba/drs_utils.py index 06e6928e308..6142349be89 100644 --- a/python/samba/drs_utils.py +++ b/python/samba/drs_utils.py @@ -23,7 +23,7 @@ from samba.ndr import ndr_unpack from samba import dsdb from samba import werror from samba import WERRORError -import samba + import ldb from samba.dcerpc.drsuapi import (DRSUAPI_ATTID_name, DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V8, @@ -158,12 +158,12 @@ def drs_get_rodc_partial_attribute_set(samdb): ldap_display_name = str(r["lDAPDisplayName"][0]) if "systemFlags" in r: system_flags = r["systemFlags"][0] - if (int(system_flags) & (samba.dsdb.DS_FLAG_ATTR_NOT_REPLICATED | - samba.dsdb.DS_FLAG_ATTR_IS_CONSTRUCTED)): + if (int(system_flags) & (dsdb.DS_FLAG_ATTR_NOT_REPLICATED | + dsdb.DS_FLAG_ATTR_IS_CONSTRUCTED)): continue if "searchFlags" in r: search_flags = r["searchFlags"][0] - if (int(search_flags) & samba.dsdb.SEARCH_FLAG_RODC_ATTRIBUTE): + if (int(search_flags) & dsdb.SEARCH_FLAG_RODC_ATTRIBUTE): continue attid = samdb.get_attid_from_lDAPDisplayName(ldap_display_name) attids.append(int(attid))