[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Question about Basic Authentication

From: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Thu, 6 Sep 2012 16:43:47 +0100

[Note: please post in plain text if at all possible!]

> -----Original Message-----
> From: Anastasio, David M CTR USAF AFMC AFLCMC/HNID
> [mailto:David.Anastasio.ctr_at_hanscom.af.mil]
> Sent: 06 September 2012 16:26
> To: users_at_subversion.apache.org
> Subject: Question about Basic Authentication
>
> Hello,
>
> System Configuration:
>
> Windows Server 2003
> Apache Subversion 1.7.6
> TortoiseSVN 1.7.9
> HTTP Server 2.2.22
>
> I am trying to configure Subversion with Basic Authentication
> but the error log indicates the user cannot be found which
> tells me the passwd file is not being seen.
>
> In this example the top level directory of the Repository is
> C:\svnrepos\test1.
>
> IP has been masked for security purposes.
>
> Should the passwd file reside elsewhere? Perhaps relative to
> the ServerRoot?
>
> LoadModules: - The "mod_auth_basic.so" load module is
> enabled in httpd.conf
>
> LoadModule auth_basic_module modules/mod_auth_basic.so

Just in case... Something that caught me when I started with apache is that the `require valid_user` directive is provided by `mod_authz_user` and I had disabled that as I thought I wasn't using it with basic etc. It took quite a bit of to-ing and fro-ing through the apache docs [1] before I got it right...

[1] http://httpd.apache.org/docs/2.2/mod/mod_authz_user.html

~ mark c

> Fragment of httpd.conf <Location> directive (it references
> full path to the passwd file...)
>
> <Location /svn/>
> DAV svn
> SVNParentPath c:/svnrepos
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile C:/svnrepos/test1/conf/passwd
> Require valid-user
> </Location>
>
> Fragment from access log:
>
> xxx..xx.x.xx - "" [06/Sep/2012:15:38:37 +0100] "OPTIONS
> /svn/test1 HTTP/1.1" 401 401
>
> xxx..xx.x.xx - "" [06/Sep/2012:15:38:37 +0100] "OPTIONS
> /svn/test1 HTTP/1.1" 401 401
>
> Fragment from error log:
>
> Thu Sep 06 15:30:48 2012] [error] [client xxx..xx.x.xx] user
> jimmy not found: /svn/test1
>
> URL from within the TortoiseSVN GUI (on the local machine):
>
> http://<local_host_name>/svn/test1
>
> David Anastasio
> Jacobs Technology
Received on 2012-09-06 17:44:29 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.