Users may still complain about the confirmation email not working... (I'm 
using an older version where "confirm": False has no effect)

gitlab-rails console production

then

for user in User.where(confirmed_at: nil) do
    user.confirmed_at = Time.now
    user.confirmation_token = nil
    user.save!end


On Tuesday, May 12, 2015 at 12:20:18 PM UTC-7, Damien NOZAY wrote:
>
> I have found that you can just post the info with your admin token:
>
>
>    - https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/users.md
>    - http://doc.gitlab.com/ce/api/README.html
>    
> headers = { 'PRIVATE-TOKEN' : 'insert-token-here' }
> data = {
>     'email': email,
>     'extern_uid': dn,
>     "provider": "ldapmain",
>     "name": name,
>     "username": username,
>     'password': '1234567890',
>     "confirm": False,
> }
> requests.post('https://gitlab.example.com/api/v3/users/', data, headers=
> headers)
>
>
> I get the email, dn, name, username from ldap by using python-ldap; I use 
> a filter to only match engineers.
> The password is required, but you can use a dummy value that matches the 
> security parameters (min 8 characters ...etc)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/1ae1c2df-e1fe-46da-ae7f-af5f3048449a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to