access control via http/https

TK Soh teekaysoh at yahoo.com
Mon Sep 26 04:21:44 CDT 2005


--- TK Soh <teekaysoh at yahoo.com> wrote:
> --- Jan Hudec <bulb at ucw.cz> wrote:
> > On Sun, Sep 25, 2005 at 23:24:27 -0700, TK Soh wrote:
> > > I wonder if it is possible to implement access control that restrict
> > http/https
> > > access to a selected list of users, including browsing of repo with a web
> > > browser. Perhaps something similar to 'cvs login'?
> > > 
> > > Currently we can published our repos via http, but that pretty allow
> > everyone
> > > within the network access the repos. Would be nice if I can just create a
> > list
> > > in .hg/hgrc to control the access.
> > 
> > If you are using hg as CGI, use the web server's access control tools.
> > .htaccess with the right setting should do the trick.
> 
> Thanks. I was able to set in up browser access after doing some research, but
> got the follow error when try to clone:
> 
> % hg clone http://user:password@hostname/hg/repo1
>   requesting all changes
>   abort: HTTP Error 400: Bad Request
> 
> Any clue?

BTW, I also tried http://user@host/repo syntax, as mentioned in pull command of
 hg.1.txt, but got the same error. I presumed the same syntax applies to clone
also. However, hg.1.txt doesn't mention if there'll be challenge for password
when using pulling/cloning with http://user@host/



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


More information about the Mercurial mailing list