mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Switch LDAP groups from groupOfUniqueNames to groupOfNames, to work with libpam-ldapd.
This commit is contained in:
1 parent
b1c9c81d58
commit
6ca38ba665
6 files changed
+15
-15
No files matched your search
@@ -128,7 +128,7 @@ class UserUpdateForm(forms.ModelForm):
|
||||
[user.get_username(), old_group])
|
||||
except ActionError:
|
||||
messages.error(self.request,
|
||||
_('Failed to add user to group.'))
|
||||
_('Failed to remove user from group.'))
|
||||
for new_group in new_groups:
|
||||
if new_group not in old_groups:
|
||||
try:
|
||||
@@ -136,7 +136,7 @@ class UserUpdateForm(forms.ModelForm):
|
||||
[user.get_username(), new_group])
|
||||
except ActionError:
|
||||
messages.error(self.request,
|
||||
_('Failed to remove user from group.'))
|
||||
_('Failed to add user to group.'))
|
||||
|
||||
return user
|
||||
|
||||
|
||||
Reference in new issue
Block a user