Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LDAP Groups and Git Source Code Hosting

We want to host our own repositories in our Company. We need LDAP support especially with Groups. So I want that User from Group A can't access Projects of Group B. Not even Read it, if it is not allowed.

I also don't want to use https. So best is, if the user logs into the webpage (LDAP login) and uploads his SSH key. After that he should be able to see only projects/repositories for his LDAP group or for all Groups he is in.

Thank you for Your Help! Joerg

like image 382
Iron Avatar asked Feb 17 '26 09:02

Iron


1 Answers

Found a helpful solution. I used Gitolite and wrote my own script. Gitolite allows you to use a script to ask the LDAP/AD for the groups. With this Website you can create your own SSH-Key form. For browsing the repos, you can use gitweb with gitolite! Besides the SSH-Key-Form I got everything is up & running.

like image 88
Iron Avatar answered Feb 21 '26 00:02

Iron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!