1

I just migrated an existing svn repository to a new server. Previously the users connected using tortoise-svn over http, and when committing, would have their revision associated with there user by the svn:author property.

However now, after the move the users connect using tortoise-svn over https, and revisions no longer have associated authors.

After some research, it is my suspicion that since users are now being authenticated during the creation of the https connection, and not by subversion, that information is not being passed with their revision changes. However I have not found any way in tortoise or further down the software chain to provide this information directly.

But, I could be totally wrong. Thanks for the help.

Software stack:
Tortoise-svn v1.6.10 connecting over https to...
Apache v2.2 on Ubuntu 10.04 running ...
mod_dav_svn with ...
Subversion v1.6.12

2 Answers 2

2

No matter whether you are using http or https, Apache can send the authentication information to Subversion repository, provided the resource in question (the Subversion repository) is protected by authorization requirements. In the <Location> or <Directory> block for your repository (or higher up in the path), do you have either:

 require valid-user 

or something to the effect of one or both of these:

 require user joe jane george require group developers admins 

If the repository is not actually requiring authorization for them, their authentication is deemed irrelevant and not passed on to Subversion, resulting in an anonymous commit.

Hope this sends you in the right direction.

1
  • Thanks Mark, I would upvote you because this could have been my problem. When I get the rep I will come back. Commented Oct 12, 2010 at 14:24
1

The cause of my problem was that svn users were not authenticating at all.

After the initial setup of svn/apache, I added a rule to the http.conf file allowing access to users on the local network that also applied to the svn location. Causing the svn user to no longer be prompted for authentication. I did not notice this at first, because I thought my credentials were being cached by TortoiseSVN.

I was further confused because within the svn location block I was specifying 'Require valid-user'. Which, as it turns out only requires a user to be validated if and only if a user is provided. This does not prevent access to non-users.

Cheers!

1
  • I also had this specific problem when specifying Satisfy any, which essentially enabled anonymous access. We were authenticating with both htpasswd file and ldap via AuthBasicProvider file ldap, so just Require valid-user would have been sufficient. Commented Apr 9, 2015 at 15:22

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.