开发者

Setup mercurial to only work with users already authenticated with my server?

I have a Mercurial server setup and would like to use it for source control over Apache. The setup i f开发者_运维百科ollowed, however, requires that I have a .htpasswd which it uses to authenticate Mercurial users. Is it possible to have this authenticated list be the people who are already users on the server so they don't have to create new id's and passwords?


Certainly. This is one of mercurial's strengths. When run as a CGI (or wsgi) it entirely trusts the REMOTE_USER environment variable. So just have apache set REMOTE_USER before running the ScriptAlias (or wsgi) and mercurial will use that authentication. Apache has many different authentication modules to interface with any user/pass system you already have.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜