Esempio n. 1
0
def _ldap_remove_member_from_group(account, group):
    if _ldap_is_member_of_group(account, group):
        ldap.get_group(group).del_member(account, dn=False)
Esempio n. 2
0
def _ldap_get_group_members(group):
    return ldap.get_group(group).get_members()
Esempio n. 3
0
def _ldap_add_member_to_group(account, group):
    if not _ldap_is_member_of_group(account, group):
        ldap.get_group(group).add_member(account, dn=False)