Skip to content

Commit c174e87

Browse files
committed
fix search
1 parent ea525f9 commit c174e87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ def pso_mins(ldap_time):
14111411

14121412
# Are there even any FGPPs?
14131413
self.logger.success("Attempting to enumerate policies...")
1414-
resp = self.ldap_connection.search(searchBase=f"CN=Password Settings Container,CN=System,{''.join([f'DC={dc},' for dc in self.domain.split('.')]).rstrip(',')}", searchFilter="(objectclass=*)")
1414+
resp = self.search(searchFilter="(objectclass=*)", baseDN=f"CN=Password Settings Container,CN=System,{self.baseDN}", attributes=[])
14151415
if len(resp) > 1:
14161416
self.logger.highlight(f"{len(resp) - 1} PSO Objects found!")
14171417
self.logger.highlight("")

0 commit comments

Comments
 (0)