You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "D. Stimits" <st...@comcast.net> on 2007/01/21 08:07:28 UTC
password-db syntax error, 1.4.2
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
All I can think of is that the actual user name starts with lower case
"d". Is there some rule that user names can't have the letter 'd'? I'm
very confused by this.
D. Stimits, stimits AT comcast DOT net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: password-db syntax error, 1.4.2
Posted by "D. Stimits" <st...@comcast.net>.
...
>
> 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.
>
I did this, and the original message "Failed to load the
AuthzSVNAccessFile:" no longer occurs. It still fails to allow login:
Access denied: 'name1' PROPFIND helloworld:/
This same password db file created from htpasswd works without
AuthzSVNAccessFile, so unless Authz and blanket access somehow require
the httpd conf file for "AuthUserFile /etc/passwd-httpd" to be a
different format, it should work. I have double checked that chcon -R -h
-t httpd_sys_content_t has been applied (and since it worked without
Authz it has also been tested). If I intentionally use a wrong password,
it changes in the logs to indicated password mismatch, so I also have to
conclude that the password file is itself being queried correctly. The
directory at /var/www/svn/ and the repo /var/www/svn/helloworld/ are
owned entirely by user and group apache, and have never been touched by
any other user (used sudo as apache while logged in as root to create this).
My httpd conf block again is:
<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>
The new authz-svn file:
[groups]
devel = name1, name2, name3, name4
[helloworld:/var/www/svn/helloworld]
name1 = rw
What other permission could be causing failed PROPFIND when this same
setup works without Authz?
D. Stimits, stimits AT comcast DOT net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: password-db syntax error, 1.4.2
Posted by Andy Levy <an...@gmail.com>.
On 1/21/07, D. Stimits <st...@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