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

RE: Authentification problem

From: Res Pons <pons32_at_hotmail.com>
Date: 2006-02-23 21:34:53 CET

Here's a copy of my httpd.conf and access file. Your modules must be loaded
in this order. Not sure about Windows servers but if on unix Apached must be
the user and owner of all files, I chose www. If you only serve ONE
repository use SVNPath as opposed to SVNParentPath used for MULTIPLE REPOS.

I noticed you have disabled the authentification directives, you must enable
the following lines:

Require valid-user
AuthType Basic # you must have some basic authentification
AuthName "Subversion Access"
AuthUserFile /local1/svn/conf/svn-pwd-file #wherever your pw file is....

------------I use the following in my httpd.conf------------------
.
.
LoadModule dav_module /usr/lib/httpd/modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/httpd/modules/mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/httpd/modules/mod_authz_svn.so
LoadModule rewrite_module /usr/local/apache2/modules/mod_rewrite.so
.
.
.
User www
Group www
.
.
.

<Location /svn>

DAV svn

SVNPath /local1/svn
#SVNParentPath /local1/svn

AuthzSVNAccessFile /local1/svn/conf/svn-access-file
#Satisfy Any
Require valid-user
AuthType Basic
AuthName "Subversion Access"
AuthUserFile /local1/svn/conf/svn-pwd-file

</Location>
-------------------------end of file---------------------

My access & pw files reside in /local1/svn/conf

The password file has encrypted passwords in it and AuthUserFile in
httpd.conf points to it.

Hereís a simple snapshot of the access file:

----------------------Access File-----------------------------------
[general]

#password-db = svn-pwd-file
#realm = svn access
#anon-access = read
#auth-access = write

[groups]

svnAdmin = samR
svnTags = samR
svnWriteGroup = user1, user2, user3,
svnReadGroup = user5, user6
svntesters = testuser

[/]
* = r
@svnAdmin = rw

[proj1:/]
@svnWriteGroup = rw
@svnReadGroup =

[proj1:/tags]
@svnTags = rw
@svnWriteGroup = r
@svnReadGroup = r

[svn:/proj2/trunk/webproducts]
@svntesters =

---------------------------- end of file------------------------

----Original Message Follows----
From: "Michael Heinze" <heinze@dr-ecklebe.de>
To: <users@subversion.tigris.org>
Subject: Authentification problem
Date: Thu, 23 Feb 2006 13:06:32 +0100
MIME-Version: 1.0
Received: from tigris.org ([64.125.133.100]) by bay0-mc4-f8.bay0.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Thu, 23 Feb 2006 07:47:23 -0800
Received: (qmail 28443 invoked by uid 5000); 23 Feb 2006 15:42:05 -0000
Received: (qmail 8730 invoked from network); 23 Feb 2006 12:06:37 -0000
X-Message-Info: 6sSXyD95QpVRRXy8D0CbXuJGvnxIZqC2s39BpF8cNl8=
Mailing-List: contact users-help@subversion.tigris.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
list-help: <mailto:users-help@subversion.tigris.org>
list-unsubscribe: <mailto:users-unsubscribe@subversion.tigris.org>
list-post: <mailto:users@subversion.tigris.org>
Delivered-To: mailing list users@subversion.tigris.org
Delivered-To: moderator for users@subversion.tigris.org
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MimeOLE: Produced By Microsoft Exchange V6.5
X-MS-TNEF-Correlator:
Thread-Topic: Authentification problem
thread-index: AcY4cZW4UEWv0zPgSeawUFyr8QmXfA==
X-Provags-ID: kundenserver.de abuse@kundenserver.de
login:a21fc2a140aeac1d626c6f3a3f02a865
Return-Path: users-return-45454-pons32=hotmail.com@subversion.tigris.org
X-OriginalArrivalTime: 23 Feb 2006 15:47:24.0037 (UTC)
FILETIME=[707DB350:01C63890]

Hi,

i have a problem with using tortoise. i have a windows server with
apache 2.0.55 and svn 1.3.0 running on it. When i use tortoise to
connect on it, updating and committing my documents on new versions is
no problem. but when i am trying to request a lock for documents, then i
get an apache error respond: "401 Authorization Required"

My Subversion configuration in the httpd.conf looks like the following:
<Location /svn>
     DAV svn
     SVNParentPath D:\svnTest\test1
# AuthType Basic
# AuthName "Subversion repositories"
# AuthUserFile D:\svnTest\test1\svn.pass
# Require valid-user
</Location>

i load / unload the modules listed below:

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

maybe i forgot something ?!?

THX for your help!

greetings form germany,

Michael

_________________________________________________________________
Donít just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 23 21:36:42 2006

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