Remove POSIX users.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-13 19:50:58 +05:30
1 parent d672e24ac4
commit 2adf14b8b7
14 files changed
+15 -327

No files matched your search

+2 -9
View File
@@ -52,8 +52,8 @@ than 63 characters in length.'),
'username':
_('Choose a username and password to access this web interface. '
'The password can be changed and other users can be added '
'later. A POSIX system user with administrative privileges '
'(sudo) is also created.'),
'later. An LDAP user with administrative privileges (sudo) is '
'also created.'),
}
def save(self, commit=True):
@@ -63,13 +63,6 @@ than 63 characters in length.'),
user.set_password(self.cleaned_data['password'])
if commit:
user.save()
try:
actions.superuser_run(
'create-user',
[user.get_username(), self.cleaned_data['password']])
except ActionError:
messages.error(self.request,
_('Creating POSIX system user failed.'))
try:
actions.superuser_run(