Add actions for LDAP group management.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-13 19:50:58 +05:30
1 parent 2adf14b8b7
commit 197c95a7bf
5 files changed
+104 -21

No files matched your search

+7
View File
@@ -56,6 +56,13 @@ class CreateUserForm(UserCreationForm):
messages.error(self.request,
_('Creating LDAP user failed.'))
try:
actions.superuser_run(
'add-ldap-user-to-group',
[user.get_username(), 'admin'])
except ActionError:
messages.error(self.request,
_('Failed to add new user to admin group.'))
return user