Switch LDAP groups from groupOfUniqueNames to groupOfNames, to work with libpam-ldapd.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-13 19:50:59 +05:30
1 parent b1c9c81d58
commit 6ca38ba665
6 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -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