fix: set base_dn

This commit is contained in:
2023-08-10 19:34:02 +02:00
parent e2ba8e20ee
commit 8ccc6416fd

View File

@@ -77,6 +77,7 @@ def get_members_of_group(group, ldap_args):
search_filter = "(&(objectClass=groupOfNames)(cn={group_name}))".format(group_name=group)
# TODO wtf is this btw??
base_dn = ldap_args["LDAP_BASE_DN"]
groups_dn = ",".join([ s.replace("People","groups") for s in base_dn.split(",")])
results = ldap_query(search_filter, ldap_args, alt_base_dn=groups_dn)