diff --git a/plinth/modules/first_boot/forms.py b/plinth/modules/first_boot/forms.py index 5c8a62a32..118d52e8c 100644 --- a/plinth/modules/first_boot/forms.py +++ b/plinth/modules/first_boot/forms.py @@ -67,8 +67,8 @@ than 63 characters in length.'), try: actions.superuser_run( - 'create-ldap-user', - [user.get_username()], + 'ldap', + ['create-user', user.get_username()], input=self.cleaned_data['password'].encode()) except ActionError: messages.error(self.request, @@ -76,8 +76,8 @@ than 63 characters in length.'), try: actions.superuser_run( - 'add-ldap-user-to-group', - [user.get_username(), 'admin']) + 'ldap', + ['add-user-to-group', user.get_username(), 'admin']) except ActionError: messages.error(self.request, _('Failed to add new user to admin group.'))