Skip to content

Commit

Permalink
Fix LDAP Groups sync
Browse files Browse the repository at this point in the history
  • Loading branch information
awieckowski committed Oct 29, 2024
1 parent c33ead2 commit 4666797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ralph/accounts/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def mirror_groups(self):
new_groups = [Group.objects.get_or_create(name=name)[0] for name
in target_group_names if name not in existing_group_names]

self._user.groups = existing_groups + new_groups
self._user.groups.set(existing_groups + new_groups)

_LDAPUser._mirror_groups_original = _LDAPUser._mirror_groups
_LDAPUser._mirror_groups = mirror_groups
Expand Down

0 comments on commit 4666797

Please sign in to comment.