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

svnserve : anonymous access not working

From: Gingko <from_tigris_at_nospam.homelinux.org>
Date: Wed, 10 Nov 2010 17:39:24 +0100

Hello,

I have a problem with svnserve :

I want to configure it for allowing anonymous users to read it, but this
don't work :
if I checkout (using TortoiseSVN), I am always asked to supply my password.

If I do it, the checkout works fine.

Otherwise I cannot checkout.

And if I click "OK" (in the TortoiseSVN authentication dialog) without
giving any authentication (leaving all fields empty), I get the following
message :

   SASL(-1): generic failure: Unable to find a callback: 2

svnserve (from Subversion 1.6.12) runs on a Linux server with Debian lenny
5.0 (64 bit edition).

The "svnserve.conf" file for that repository contains the following :
------------------------------------------------------------------------------------------------
[general]
anon-access = read
auth-access = write
realm = Référentiel Pouchin TV Mod

[sasl]
use-sasl = true
min-encryption = 128
max-encryption = 256
------------------------------------------------------------------------------------------------

For SASL, I have also a "svn.conf" file in the "/etc/" directory, containing
the
following :
------------------------------------------------------------------------------------------------
pwcheck_method: auxprop
auxprop_plugin: sasldb
sasldb_path: /var/lib/svn/sasldb
mech_list: DIGEST-MD5
------------------------------------------------------------------------------------------------

Note that there is also an Apache access, running concurrently, which works
fine for anonymous reading. But I also want this anonymous access on
svnserve.

svnserve is configured for logging all accesses, but the log doesn't record
anything during theses failing anonymous accesses.

svnserve is launched through the "inetd.conf" file, and the corresponding
line is :

    svn stream tcp nowait www-data
/usr/bin/svnserve svnserve -i --log-file /var/log/svnserve.log -r
/var/lib/svn

I don't understand why it doesn't work.

Isn't it enough to set "anon-access = read" for allowing anonymous reading
access ?
What am I doing wrong ?

Best regards,

Gingko
Received on 2010-11-10 17:40:10 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.