How to create a User with authentication against external LDAP through REST API without password it GitLab?

Dear community,

I’ve scripted the migration from an existing Git installation (Stash) to a new GitLab CE instance. Authentication of the existing Git installation is made against LDAP and authorization is made within Stash. I need to create the users in GitLab first so that they can be bound to the permissions.

But the GitLab API doesn’t allow to create a user without a password and without a reset_password through the endpoint “POST /users”.

Any ideas how to automatically create a user that is authenticated by an external directory without password in GitLab?

Best regards,

This issue seems to be resolved in GitLab 9.0.0. After upgrade to the latest version this worked like expected.