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

Re: password-db syntax error, 1.4.2

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-01-21 14:23:07 CET

On 1/21/07, D. Stimits <stimits@comcast.net> wrote:
> I recently installed version 1.4.2 x86_64 linux rpm's on CentOS 4.4. I'm
> trying to get the apache mod_dav stuff to work. I was able to get blank
> plain vanilla basic auth working, but cannot seem to get
> AuthzSVNAccessFile to authenticate. I have all caching turned off on the
> client, and all cache files checked to be sure this is true. SSL is
> working correctly, verified under non-Authz and other directories which
> are unrelated to the repository. All SElinux contexts are correct for
> the /var/www/ directory and recursively into all directories which are
> subdirectories thereof. The server is restarted each time changes are
> made. The actual password file is created with htpasswd.
> The checkout:
> svn co https://some.domain.com/svn/helloworld/
> My apache config:
> <Location /svn>
> DAV svn
> SVNParentPath /var/www/svn
> SSLRequireSSL
> AuthzSVNAccessFile /etc/authz-svn
> Require valid-user
> AuthType Basic
> AuthName "Subversion Repository"
> AuthUserFile /etc/passwd-httpd
> </Location>
> My /etc/authz-svn, with user names changed:
> [general]
> password-db = /etc/passwd-httpd
> [groups]
> devel = name1, name2, name3
> [helloworld:/var/www/svn/helloworld]
> name1 = rw
> I try to login with name1. The apache SSL error log shows:
> Failed to load the AuthzSVNAccessFile: The character 'd' in rule
> 'password-db' is not allowed in authz rules
> Access denied: 'name1' PROPFIND helloworld:/
> Is this the wrong syntax in apache config?
> AuthzSVNAccessFile /etc/authz-svn
> Is this the wrong syntax in the authz file?
> password-db = /etc/passwd-httpd

I think you've mixed the Apache auth config and svnserve auth config.
When serving via Apache, the password file is located using
AuthUserFile in the <Location> block.

Comment the first 2 lines out of /etc/authz-svn and see what happens.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 21 14:23:36 2007

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.