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

Re: SASL Encrpytion Not Working

From: TomDeWord <collabnetsvn_at_vixx.co.uk>
Date: Fri, 1 Aug 2008 04:29:30 -0700 (PDT)

On Jul 30, 9:36 pm, Stefan Küng <tortoise..._at_gmail.com> wrote:
> I just tested this with the opencollab.net server which is build from
> svn 1.5.0. It works fine with TSVN 1.5.1.
> I only got the same error as you when I didn't pass the correct
> username, or when I first forgot to create the password without
> specifying the repository realm.
> Please have a look at the Subversion book on how to configure your
> server correctly.
>
> Stefan
>

Thanks for taking the time to check this Stefan; as you've confirmed
that it does work I retried the following:

I created a repository from scratch and setup it up as a service:

sc create svnserve binpath= "d:\svn\bin\svnserve.exe --service --root
D:\svn\testRepro" displayname= "Subversion" depend= tcpip start= auto

svnserve.conf (in D:\svn\testRepro\conf) contains:

[general]
realm=home

I created a new user:

saslpasswd2.exe -c -f "D:\svn\testRepro\sasldb" -u home jonus

sasldblistusers2 -f "D:\svn\testRepro\sasldb"

gives:

jonus_at_home: userPassword

I have the following in the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Carnegie Mellon\Project Cyrus\SASL
Library]
"SearchPath"="D:\\svn\\bin"
"ConfFile"="D:\\svn\\testRepro"

svn.conf (in D:\svn\testRepro) contains:

pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: DIGEST-MD5
sasldb_path: D:\svn\testRepro\sasldb

I then enter svn://localhost into the repro browser:

if I set use-sasl to false I get an expected 'No access allowed to
this repository' message as anon-access is set to none.
if I set use-sasl to true with min-encryption set to 1 I get an
authentication diaglog: <svn://localhost:3690> home
I enter the username of jonus_at_home & the password, check save
authentication and hit ok; this accesses the repository fine.

As far as I can see the username, password & realm are setup fine and
I must be using SASL authentication as the user jonus only exists in
the sasldb and anon-access is set to none. If seesm to only be a
problem with the encrpytion not the authentication.

If I change min-encryption to 128 I get the error: SASL(-1): generic
failure: Unable to find a callback: 2

I've gone over the instructions multiple times and can see nothing to
change, can you see anything I've missed? Thanks for you help.

Regards

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-08-01 13:30:53 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.