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

Authentication Failed when mod_authz_svn is used !?!?

From: Vincent Ducret <Vincent.Ducret_at_Sun.COM>
Date: 2005-01-12 10:21:45 CET

Hi all,
I'm facing a strange problem ...
I installed on a Solaris-SPARC box: Subversion 1.1.2, Apache 2 and
ViewCVS. I configured my Apache instance to only process SSL requests
from browser and svn clients, and to request for Basic Authentication.

From a remote client (under Linux), I can successfully browse my SVN
repositories thanks to ViewCVS and access my svn repositories through my
svn client (everything works well, SSL, authentication, checkout, ...).

Now I'm looking for defining authorization policies on the server-side
to apply the right access granularity to my different repositories. For
that, I defined the following Location tag into my httpd.conf file:

<Location /svn>
  DAV svn
  SVNParentPath /var/hosted-projects/svn/repositories

  AuthType Basic
  AuthName "Subversion repositoriess "
  AuthUserFile /var/hosted-projects/svn/auth-file

  AuthzSVNAccessFile /var/hosted-projects/svn/authz-file

  Require valid-user
</Location>

Into /var/hosted-projects/svn/authz-file, I define the rules following
the SVN syntax.

I can successfully stop and restart Apache, the mod_authz_svn module is
sucessfully loaded. When I launch a svn command from my remote client, I
got the SSL certificate, and then a password request (authentication
steps) BUT ....
When I entered my password (the same one than previously without
authorization mechanisms in place), svn do not validate it as previsouly
and asl me to enter my username, then my password again again again ..

As a result, it seems that my previsous passwords are no more valid ?!?!

But if I comment the AuthzSVNAccessFile line in httpd.conf and restart
Apache, it works again !! I.e. I can successfully authenticate to SVN
with my usual password ...

Any tip or suggestion
Thanks
Vincent

-- 
Vincent Ducret
Software Architect, Sun CS Enterprise Web Services Practice
Sun Microsystems (Switzerland) Inc.  Phone:  +41 22 999 04 04
Route des Avouillons 12              Fax:    +41 22 999 04 05
CH-1196 Gland                        E-mail: vincent.ducret@sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 12 13:24:33 2005

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.