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

subversion auth setup 500 Internal Error "Need Authname"

From: bruce <badouglas_at_gmail.com>
Date: Thu, 17 Mar 2011 21:23:39 -0700

Hi.

Trying to setup svn to use http, with the user/auth user access files.

I have the following in the subversion.conf for the apache server:

<Location /repos>
   DAV svn
   SVNPath /apps/CollegeDir/CollegeRepository/

        AuthzSVNAccessFile /asvn/svnAccessAuthz
        AuthType Basic
# AuthName "Subversion Repository"
        AuthUserFile /asvn/svnUserAuthz
        Require valid-user
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
# AuthType Basic
# AuthName "Authorization Realm"
# AuthUserFile /path/to/passwdfile
# Require valid-user
# </LimitExcept>
</Location>

I have the following in the user/password auth files (each file is set
to apache/apache/766 as a test)

/asvn/svnAccessAuthz
[/]
* = rw

[/repos]
* = rw

[/repos/trunk]
* = rw

[repos:/]
* = rw

[repos:/trunk]
* = rw

[/trunk]
* = rw

/asvn/svnUserAuthz
bill:$apr1$NsGWbE/9$695MXkrm8x06hMabC3Hu71

the svnUserAuthz file was create using:
 htpasswd -mb /etc/svnUserAuthz bill qqqqqq

---------------------------------------------------------

When I try to access the repos, using the following i get the Internal
500 error, with the "Need Authname /foo" in the apache err logs.

svn list --username bill --password qqqqqq http://192.168.1.45/repos
svn: Server sent unexpected return value (500 Internal Server Error)
in response to OPTIONS request for 'http://192.168.1.45/repos'

the error_log is:
[Thu Mar 17 21:08:38 2011] [error] [client 192.168.1.45] need AuthName: /repos/
[Thu Mar 17 21:08:43 2011] [error] [client 192.168.1.45] need
AuthName: /repos/trunk

if I comment out the
# AuthzSVNAccessFile /asvn/svnAccessAuthz
# AuthType Basic
# AuthName "Subversion Repository"
# AuthUserFile /asvn/svnUserAuthz
# Require valid-user

then I can easily access the repos, so I'm screwing up something with
the user/passwd access process.

i've set the access on the /asvn and the svn files to be:
  chmod 766
  chown apache.apache
so the files are completely accessible to the apache server...

I've tried numerous combinations in the auth file to try to get it to
allow access for a test user, but I'm completely stumped.

Thoughts/comments/pointers would be greatly appreciated.

Thanks
Received on 2011-03-18 05:24:19 CET

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.