English 中文(简体)
Authenticating Gitweb with Gitosis without LDAP Auth?
原标题:

I found your article using Apache Auth with gitweb, gitosis.

I was wondering if there was a way to do this if I wasn t using LDAP for authentication. We currently have a very large NIS domain which we use for authentication on all unix servers. We use this for SVN repositories through a UI, but for this case I am trying to meet a requirement of:

  • Git Repositories
  • Access Controlled - using Gitolite
  • Online UI - using Gitweb
  • UI must also have Access Control - not yet implemented

I was thinking first I need to get Gitweb and Gitolite to play together and each one works at the moment individually.

If gitolite provides access using SSH-keys, then it can provide the access this way by having a key for each machine a user/developer will be accessing Gitweb/gitolite from.

Or if I can get gitweb to simply authenticate users from NIS domain since every user has an account that our IT department sets up this would be better.

Any ideas or howtos I can use to get further on this requirement?

问题回答

The way you link gitweb and gitosis together is by:

    use lib (".");
    require "gitweb.conf";
  • using a NIS authentication for your Apache2 httpd.conf (or extra/httpd-ssl.conf if you are using https)

Once a user is authenticated (be it with basic, LDAP or NIS auth), the $cgi->remote_user will be set and that is that login which will be passed (by the gitolite gitweb.conf) to the gitolite perl script managing Git access rights (ACLs).

The Git ACLs are still managed by ssh key and are independent from the login mechanism, except for the login part which enable gitolite to make the right account association.





相关问题
WCF with Http Basic Authentication

I m building a webservice that needs to be accessible to a variety of potential platforms, including a number of older ASP and ASP .NET applications. After some research, I settled on a WCF service ...

Java: fetch URL with HTTPBasic Authentication

I m doing some simple HTTP authentication and am getting a java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic OGU0ZTc5ODBk(...trimmed from 76 chars...) (...more ...

Authenticating Gitweb with Gitosis without LDAP Auth?

I found your article using Apache Auth with gitweb, gitosis. I was wondering if there was a way to do this if I wasn t using LDAP for authentication. We currently have a very large NIS domain which ...

Back button must not go to previous page after signing out

I am developing an asp.net web site and I am not using inbuilt authentication controls of asp.net. I have created manually tables for users for site. What I want is as follows After logging in user ...

Authentication based on Certificates and IP

Is there a way for a java web app to get information on the security certificates installed on one s machine via a http request and selectively grant access if a particular certifiicate is installed ...

Netbeans Basic Http Auth Jax-WS

how can I access a webservice through a basic http authentification? I am using the netbeans built in webservice client features. But when I try to access the webservice, I get an exception with a 401 ...

热门标签