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

Method do_get_user_groups

utils/ldap_shell.py:466–471  ·  view source on GitHub ↗
(self, user_name)

Source from the content-addressed store, hash-verified

464 raise Exception('The server returned an error: %s', self.client.result['message'])
465
466 def do_get_user_groups(self, user_name):
467 user_dn = self.get_dn(user_name)
468 if not user_dn:
469 raise Exception("User not found in LDAP: %s" % user_name)
470
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)

Callers

nothing calls this directly

Calls 2

get_dnMethod · 0.95
searchMethod · 0.95

Tested by

no test coverage detected