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

Method do_get_group_users

utils/ldap_shell.py:473–478  ·  view source on GitHub ↗
(self, group_name)

Source from the content-addressed store, hash-verified

471 self.search('(member:%s:=%s)' % (LdapShell.LDAP_MATCHING_RULE_IN_CHAIN, escape_filter_chars(user_dn)))
472
473 def do_get_group_users(self, group_name):
474 group_dn = self.get_dn(group_name)
475 if not group_dn:
476 raise Exception("Group not found in LDAP: %s" % group_name)
477
478 self.search('(memberof:%s:=%s)' % (LdapShell.LDAP_MATCHING_RULE_IN_CHAIN, escape_filter_chars(group_dn)), "sAMAccountName", "name")
479
480 def do_get_laps_password(self, computer_name):
481

Callers

nothing calls this directly

Calls 2

get_dnMethod · 0.95
searchMethod · 0.95

Tested by

no test coverage detected