내 수은 리포지토리에 기본 수준 인증을 구현하려고합니다. Windows에서 아파치 사용.mercurial + apache 기본 인증 다중 프롬프트
블로그를 많이 보았습니다. &을 구현하는 단계를 언급했는데, 이것이 내 아파치 httpd.conf 파일 섹션의 모습입니다.
.........
...............
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>
..........
.......
시도하면 hg clone http://my-domain.com/mercurial-repo
, 인증을 요구합니다. 잘못된 자격 증명을 입력하면 인증이 예상대로 실패합니다. 나는 유효한 자격 증명을 입력하면, 그것은이 ... 사용자 이름과 암호를 입력 요구에이 같은
을 유지하는 것입니다 :
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:
.....................
.....................
을하지만 되찾기 URL에 사용자 및 암호 자격 증명을 입력 할 때, 그것의 일 벌금. 예 : hg clone http://username:[email protected]/mercurial-repo
이 작동 중입니다. 그러나 hgtortoise gui의 인증이 같은 이유로 작동하지 않기 때문에 사용자 및 암호 자격 증명을 프롬프트에 추가해야합니다. 아무도 왜 이것이 일어나고 있는지 알아낼 수 있습니까?
어떤 버전의 Mercurial/TortoiseHG를 사용하고 있습니까? – djc
djc : 저는 mercurial v2.5.2 tortoisehg v2.7.1 apache v2.2 – leninmon