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

+8
View File
@@ -72,6 +72,14 @@ than 63 characters in length.'),
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.'))
self.login_user()
return user