Merge pull request #1303 from TGJLS/main

fix(onelogon): allow onelogon module to work with same forrests and cross forrest
This commit is contained in:
Alex authored and GitHub committed 2026-07-05 20:54:09 +02:00
commit 8dfe5573bf
1 file changed
+2 -2
+2 -2
View File
@@ -24,7 +24,7 @@ class NXCModule:
found_dacls = []
policies = connection.conn.listPath("SYSVOL", f"{connection.domain}/Policies/*")
policies = connection.conn.listPath("SYSVOL", f"{connection.targetDomain}/Policies/*")
for policy in policies:
# Skip "." and ".." directory pointers to avoid path errors
if policy.get_longname() in [".", ".."]:
@@ -32,7 +32,7 @@ class NXCModule:
try:
self.gpo_data = b""
connection.conn.getFile("SYSVOL", f"{connection.domain}/Policies/{policy.get_longname()}/MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf", output_callback)
connection.conn.getFile("SYSVOL", f"{connection.targetDomain}/Policies/{policy.get_longname()}/MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf", output_callback)
try:
decoded_data = self.gpo_data.decode("utf-8")