MCPcopy Index your code
hub / github.com/XiaoliChan/LDAPShell / search

Method search

utils/ldap_shell.py:601–610  ·  view source on GitHub ↗
(self, query, *attributes)

Source from the content-addressed store, hash-verified

599 raise Exception('The server returned an error: %s', self.client.result['message'])
600
601 def search(self, query, *attributes):
602 self.client.search(self.domain_dumper.root, query, attributes=attributes)
603 for entry in self.client.entries:
604 print(entry.entry_dn)
605 for attribute in attributes:
606 value = entry[attribute].value
607 if value:
608 print("%s: %s" % (attribute, entry[attribute].value))
609 if any(attributes):
610 print("---")
611
612 def get_dn(self, sam_name):
613 if "," in sam_name:

Callers 13

do_searchMethod · 0.95
do_get_user_groupsMethod · 0.95
do_get_group_usersMethod · 0.95
dummySearchMethod · 0.80
do_write_gpo_daclMethod · 0.80
do_rename_computerMethod · 0.80
do_clear_rbcdMethod · 0.80
do_set_dontreqpreauthMethod · 0.80
do_get_laps_passwordMethod · 0.80
do_grant_controlMethod · 0.80
do_set_rbcdMethod · 0.80

Calls

no outgoing calls

Tested by 1

dummySearchMethod · 0.64