Skip to content

Commit

Permalink
🐛 Ensure that the 'member' attribute of the group uses the correct 'd…
Browse files Browse the repository at this point in the history
…n' for the associated user
  • Loading branch information
jemrobinson committed Mar 8, 2024
1 parent 5559d27 commit 9cd7d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apricot/oauth/oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def validated_groups(self) -> list[LDAPAttributeAdaptor]:
for user_dict in self.users():
user_dict["cn"] = user_dict["uid"] # the 'cn' is used as the group name which should match the username
user_dict["memberUid"] = [user_dict["uid"]]
user_dict["member"] = [f"CN={user_dict['uid']},OU=users,{self.root_dn}"]
user_dict["member"] = [f"CN={user_dict['cn']},OU=users,{self.root_dn}"]
user_group_dicts.append(user_dict)
# Iterate over groups and validate them
for group_dict in self.groups() + user_group_dicts:
Expand Down

0 comments on commit 9cd7d8f

Please sign in to comment.