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