From bc8523d9a3da60f9eb2cc2063b522d8d94225716 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Fri, 29 May 2015 20:49:11 -0400 Subject: [PATCH] first_boot: Also create LDAP user for initial user. --- plinth/modules/first_boot/forms.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plinth/modules/first_boot/forms.py b/plinth/modules/first_boot/forms.py index bbb22b563..fe12bd686 100644 --- a/plinth/modules/first_boot/forms.py +++ b/plinth/modules/first_boot/forms.py @@ -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