From bd50a585a18f9d848eb598c1513e8a933dd6e43f Mon Sep 17 00:00:00 2001 From: MaxToffy <91328785+MaxToffy@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:12:15 +0100 Subject: [PATCH] Fix TARGET_DN object query Signed-off-by: MaxToffy <91328785+MaxToffy@users.noreply.github.com> --- nxc/modules/daclread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,