i am struggling for several weeks now to make gitolite work on redhat 6.4 with LDAP (active directory) and SSH authentication.
nothing works.
biggest problems is that guides on internet all use different configurations, its huge mess..
couldnt find anything that works.
basicly i get to the point when gitolite works over SSH and i can control the gitolite config from administrative user, however nothing i do makes apache work as well..
the errors that i receive from apache access LOG state error 401 or 404..
i am frustrated :)
does anyone have any working config or guide that can shed some light on this??
thank you kindly :D
cheers
Sorry I don't really play that field; hopefully someone on the list will answer.
Quick question though: are you trying to tie LDAP to ssh or to apache/httpd?
On 09/03/2013 11:57 PM, Benjamin Shtark wrote:
> Hi Guys,
>
> i am struggling for several weeks now to make gitolite work on redhat 6.4 with LDAP (active directory) and SSH authentication.
>
> nothing works.
> biggest problems is that guides on internet all use different configurations, its huge mess..
> couldnt find anything that works.
>
> basicly i get to the point when gitolite works over SSH and i can control the gitolite config from administrative user, however nothing i do makes apache work as well..
>
> the errors that i receive from apache access LOG state error 401 or 404..
>
> i am frustrated :)
>
> does anyone have any working config or guide that can shed some light on this??
>
> thank you kindly :D
>
> cheers
>
>
> basicly i get to the point when gitolite works over SSH and i can control the gitolite config from administrative user, however nothing i do makes apache work as well..
>
> the errors that i receive from apache access LOG state error 401 or 404..
>
Try putting this file on the repository. I had to have it there to fix the 404 error
git-daemon-export-ok
I do have gitolite working over SSH and https and using free-ipa for authentication.
That being said, as others have said, you may get better assistance by laying down what you have done already in more details
William
> i am frustrated :)
>
> does anyone have any working config or guide that can shed some light on this??
>
> thank you kindly :D
>
> cheers
>
>
> --
> You received this message because you are subscribed to the Google Groups "gitolite" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+u...@googlegroups.com.
Hi Primoz,
> > > For more options, visit https://groups.google.com/groups/opt_out.
>
> Hi William
> how did you integrate the authentication for ssh with freeipa? I'm trying to do the same and use gitolite to define to what repos a user can push. I have a freeipa server up and running and the server is connected to it and user authentication works using ssh keys from freeipa.
> Regards
This is definitely doable as I did setup two gitolite server on ssh/smart https that authenticate against freeIPA a while back. They are still in use but I left that gig less than a month ago so all information below are from memory.
This is what I remember.
- you need to create groups for each of the repos and push them to gitolite admin repo. Essentially the documented gitolite repo access right stuff.
- Then create the respective groups on freeIPA or active directory - the later if you have trust relationship.
- There is a script somewhere online that take the user name from apache/ssh and check if the user is in a group that's authorized to access the repo in question. It's on freeIPA mailing list so try looking there.
- Enroll the git server to freeIPA - To allow ssh authenticated access from IPA - and also create a Kerberos keytab for http service. Look for how to configure Apache to use Kerberos for authentication.
This link could provide more information
https://www.redhat.com/archives/freeipa-users/2013-May/msg00237.html
Make sure the authenticated user name don't include kerberos realm extension. This is done by the same apache configuration. I had a lot problem as Apache was passing wmur...@EXAMPLE.LOC to the script instead of wmuriithi. See the bottom of that link above
- I do remember struggling with suexec.
This isn't too helpful unfortunately like the actual configurations, but hope it help a bit.
One last thing I would recommend is just to try making each method work exclusively. As in:
- get ssh access working with local account and make some notes.
-Then, start working with http smart mode and apache basic authentication and get it working
- Then bring in FreeIPA
I do remember making changes to http smart host that broke ssh and the reverse but don't recall how I resolved it, but if you take above methodology, you will identify the conflict.
I may try doing it again to document the process and share with the group when I get a chance soon, but hope the above with be helpful in the meantime
William
> Primož
>
> --
> You received this message because you are subscribed to the Google Groups "gitolite" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.