git-http-backend: anonymous read, authenticated write

2013-04-08 Thread Magnus Therning
or: The requested URL returned error: 403 Forbidden while accessing http://magnus@tracsrv.local/git/foo.git/info/refs?service=git-receive-pack AFAICS this means the man-page is wrong, and that I instead ought to match on the "service=git-receive-pack" part. Is that a corr

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Tue, Apr 09, 2013 at 01:12:47PM -0400, Jeff King wrote: > On Tue, Apr 09, 2013 at 07:45:53AM +0200, Magnus Therning wrote: > >> I've been trying to set up git-http-backend+lighttpd. I've managed >> to set up anonymous read-only access, and I then successfully >

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Tue, Apr 09, 2013 at 02:24:26PM +0200, Jakub Narębski wrote: > On 09.04.2013, Magnus Therning wrote: > > > I've been trying to set up git-http-backend+lighttpd. I've managed to > > set up anonymous read-only access, and I then successfully configured > > auth

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
"half-auth" repositories, 2012-08-27) which demonstrates the > problem, and b81401c (http: prompt for credentials on failed POST, > 2012-08-27). > > However, even before the fix, it never got a 403 on the GET of > info/refs. It got a 401 on the later POST, but di

Re: git-http-backend: anonymous read, authenticated write

2013-04-10 Thread Magnus Therning
On Thu, Apr 11, 2013 at 3:56 AM, Jeff King wrote: > On Thu, Apr 11, 2013 at 01:19:19AM +0200, Magnus Therning wrote: > >> Nope. I'm pretty sure this had *nothing* to do with my config. This >> is the original config, which doesn't work: >> >> $HT

Re: [PATCH 1/2] doc/http-backend: clarify "half-auth" repo configuration

2013-04-10 Thread Magnus Therning
en giving > +an opportunity for authentication. > ++ > To require authentication for both reads and writes, use a Location > directive around the repository, or one of its parent directories: > + > -- > 1.8.2.rc0.33.gd915649 > As the dumb user who started the thread that

Re: git-http-backend: anonymous read, authenticated write

2013-04-12 Thread Magnus Therning
On Thu, Apr 11, 2013 at 9:34 PM, Jeff King wrote: > On Thu, Apr 11, 2013 at 08:52:56AM +0200, Magnus Therning wrote: > >> > The documentation should probably make the use of http.receivepack more >> > clear in this situation. >> >> I think that'd be goo