diff --git a/nxc/modules/daclread.py b/nxc/modules/daclread.py index 2cb4f45cd..efec55321 100644 --- a/nxc/modules/daclread.py +++ b/nxc/modules/daclread.py @@ -373,7 +373,7 @@ def search_target_principal_security_descriptor(self, context, connection): if self.target_DN is not None: _lookedup_principal = self.target_DN target = self.ldap_session.search( - searchBase=self.baseDN, + searchBase=_lookedup_principal, searchFilter=f"(distinguishedName={_lookedup_principal})", attributes=["nTSecurityDescriptor"], searchControls=controls,