mercurial+;apache基本身份验证多个提示
我正在尝试为我的mercurial repos实现基本级别的身份验证。在windows上使用apache 我已经看到很多博客提到了实现它的步骤&这就是我的apachehttpd.conf文件部分的样子mercurial+;apache基本身份验证多个提示,apache,authentication,mercurial,webserver,basic-authentication,Apache,Authentication,Mercurial,Webserver,Basic Authentication,我正在尝试为我的mercurial repos实现基本级别的身份验证。在windows上使用apache 我已经看到很多博客提到了实现它的步骤&这就是我的apachehttpd.conf文件部分的样子 ......... ............... LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so WSGIPython
.........
...............
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
WSGIPythonPath "C:/Python27;C:/apache2/htdocs/library"
<Directory "C:/apache2/htdocs">
AllowOverride None
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
AuthName "sample realm"
AuthType Basic
AuthBasicAuthoritative on
AuthUserFile c:/hgusers.txt
require valid-user
</Directory>
..........
.......
但是,当我在repo url中输入用户和密码凭据时,工作正常。
例如:hg克隆http://username:password@mydomain.com/mercurial repo
正在运行。
但是我需要将用户和密码凭据添加到提示中,因为来自hgtortoise gui的身份验证也出于同样的原因不起作用。
谁能帮我弄清楚为什么会发生这种情况。我认为Mercurial协议需要两个密码提示,尽管我完全忘记了原因。你使用的是什么版本的Mercurial/TortoiseHG?djc:我使用的是Mercurial v2.5.2 TortoiseHG v2.7.1 apache v2.2不仅仅是两个提示。每当我输入有效的用户名和密码时,它都会不断提示user&pass。但当输入无效凭据时,它将退出,并按预期抛出身份验证失败消息。当我输入hg clone
http://username:password@host.com
format我被告知,使用基本身份验证,只有hg clonehttp://username:password@host name.com
格式将起作用,以便使用hg克隆http://host-name.com 用户:用户名密码:密码
格式,我必须实现active directory身份验证。有人能确认一下吗。我只是不想在放弃这方面的努力之前确定一下。
C:\test-repo>hg clone http://my-domain.com/mercurial-repo
http authorization required
realm: sample realm
user: dave
password:
http authorization required
realm: sample realm
user: dave
password:
.....................
.....................