def get_ou_users(l, config, ou): users = ldapfe.getOUMembers(l, config['people_dn'], ou) return ldapfe.parse_users(users)
def get_all_ou_users(l, config): users = ldapfe.getAllOUMembers(l, config['people_dn']) return ldapfe.parse_users(users)