first_boot: Also create LDAP user for initial user.

This commit is contained in:
James Valleroy 2015-05-29 20:49:11 -04:00 committed by Sunil Mohan Adapa
parent 3a3009c111
commit bc8523d9a3

View File

@ -70,6 +70,15 @@ than 63 characters in length.'),
except ActionError:
messages.error(self.request,
_('Creating POSIX system user failed.'))
try:
actions.superuser_run(
'create-ldap-user',
[user.get_username(), self.cleaned_data['password']])
except ActionError:
messages.error(self.request,
_('Creating LDAP user failed.'))
self.login_user()
return user