Re: Add LDAP users before they log in

2019-02-03 Thread Rahul Desai

>
> Thanks a lot Damien NOZAY. Is it possible to execute the same command over 
> command line? 
>
Thanks in advnace 
 
 
 

-- 
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/9dd3c537-4497-4ff2-b179-8b88556abba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2015-05-14 Thread Damien NOZAY

The API fix for skipping confirmation is present in v7.9.0 
 and following. 
https://github.com/gitlabhq/gitlabhq/issues/6895
https://github.com/gitlabhq/gitlabhq/commit/5f682094d9b7c985ad62ebe29664bb6fe87b54be

-- 
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/01d6396b-ccab-45c2-a57a-5d816d0c50f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2015-05-14 Thread Damien NOZAY
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.


Re: Add LDAP users before they log in

2015-05-14 Thread Karen Carias
Thanks for sharing!

-- 
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/17bf970f-cd84-4896-952d-d388b289e69b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2015-05-12 Thread Damien NOZAY
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/8ac1302a-09cc-47ff-b68a-ab360e76ebfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2014-09-19 Thread Gustavo Lira e Silva
I found a solution for this.

I have been created direct at database the users that my LDAP has.

The secret is on table user and set the values of columns
provider=ldap
confirmed_at= current date
extern_uid=bind for the user at LDAP

So I can create repositories for these users without they has logged in,
when they log in they will see all the repositories that you already
created!

2014-09-19 15:36 GMT-03:00 Cord Thomas :

> I have this same need.  see
> https://groups.google.com/forum/#!topic/gitlabhq/jf3wCczAs_I which is
> largely a dupe of this thread.
>
> Has anyone created a feature request?
>
>
> On Thursday, September 18, 2014 12:27:45 AM UTC-7, Kevin Busch wrote:
>>
>> Have u found a solution?
>>
>>
>> I also need that function to add LDAP Users before they have logged in.
>>
>> i wrote a script that adds GitLab-Groups depending on LDAP-Groups, and
>> synchronizes the memberships. But only for people who have loggend in
>> allready. It would be great if i can add Users before they log in.
>>
>>
>>
>> Am Donnerstag, 14. November 2013 02:53:53 UTC+1 schrieb Gene Liverman:
>>>
>>> Is there a way to add LDAP users in GitLab before they have logged in
>>> for the first time?  In one of the other git apps I was able to prefix a
>>> user name with ldap/ and it would look them up.  It also allowed me to add
>>> LDAP groups as a means of setting permissions on a repo... is there a way
>>> to do this?  Thanks!
>>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "GitLab" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/gitlabhq/2eBa5LFJj_s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> gitlabhq+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/9be22165-a680-4cea-ad89-79f6308a4cfe%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFgXge7GYGb9c7LDFMr%3DESnUNpjey_BhB2hKJwxHJ9vyV95omg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2014-09-19 Thread Cord Thomas
I have this same need. 
 see https://groups.google.com/forum/#!topic/gitlabhq/jf3wCczAs_I which is 
largely a dupe of this thread.

Has anyone created a feature request?

On Thursday, September 18, 2014 12:27:45 AM UTC-7, Kevin Busch wrote:
>
> Have u found a solution?
>
>
> I also need that function to add LDAP Users before they have logged in.
>
> i wrote a script that adds GitLab-Groups depending on LDAP-Groups, and 
> synchronizes the memberships. But only for people who have loggend in 
> allready. It would be great if i can add Users before they log in.
>
>
>
> Am Donnerstag, 14. November 2013 02:53:53 UTC+1 schrieb Gene Liverman:
>>
>> Is there a way to add LDAP users in GitLab before they have logged in for 
>> the first time?  In one of the other git apps I was able to prefix a user 
>> name with ldap/ and it would look them up.  It also allowed me to add LDAP 
>> groups as a means of setting permissions on a repo... is there a way to do 
>> this?  Thanks!
>>
>

-- 
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/9be22165-a680-4cea-ad89-79f6308a4cfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2014-09-18 Thread Kevin Busch
Have u found a solution?


I also need that function to add LDAP Users before they have logged in.

i wrote a script that adds GitLab-Groups depending on LDAP-Groups, and 
synchronizes the memberships. But only for people who have loggend in 
allready. It would be great if i can add Users before they log in.



Am Donnerstag, 14. November 2013 02:53:53 UTC+1 schrieb Gene Liverman:
>
> Is there a way to add LDAP users in GitLab before they have logged in for 
> the first time?  In one of the other git apps I was able to prefix a user 
> name with ldap/ and it would look them up.  It also allowed me to add LDAP 
> groups as a means of setting permissions on a repo... is there a way to do 
> this?  Thanks!
>

-- 
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/e519f063-b688-4cad-85b3-e06fc40c6187%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add LDAP users before they log in

2014-08-19 Thread Gustavo Lira e Silva
Hi,

Did you found a solution for your case?

I'm with this same need. I look that python script but I couldn't see a 
solution for my case.

Please someone could help me?

Em quarta-feira, 13 de novembro de 2013 23h53min53s UTC-2, Gene Liverman 
escreveu:
>
> Is there a way to add LDAP users in GitLab before they have logged in for 
> the first time?  In one of the other git apps I was able to prefix a user 
> name with ldap/ and it would look them up.  It also allowed me to add LDAP 
> groups as a means of setting permissions on a repo... is there a way to do 
> this?  Thanks!
>

-- 
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/71f00dc4-6e98-45a5-bed4-4c2ae7865bbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.