Subversion not working for sub-server

So, I create a subversion repository via virtualmin for a sub-server. No users can be picked to grant access to, that part of the screen is not shown. It dutifully creates the svn repository, for example, at /svn/whmcs. I try and access said repository using the username created for the main server (since sub-server has no user) and I get an apache 403 error. Password is correct of course, and it did correctly create the password file with the main servers user and password. However, no users have access.

If I add the user to the sub-servers etc/svn-access.conf file, indeed, the repository then works. Add it as follows: username = rw

So, confused as to why I cannot create one for a sub-server without having to manually edit the file? Do i have to do something weird like create a user for the sub-server (ftp user) that will never be used perhaps? before creating the repository?

Status: 
Closed (fixed)

Comments

So, indeed, I created a user for the sub-server called svn, with a simple password, then created a repository, and, indeed, it creates the right entries since I can now grant a user access.

However, it seems to use the wrong password when done in this manner. The password assigned to the new "email" user named svn is NOT what was specified when that user was created, easily verified by showing the password. So, I then had to go into apache and manager the access for the svn location and change the svn user password and then it works.

Still, seems like too much work here or a sub-server, shouldn't it just work without:

  1. Having to create a sub-server user that will never otherwise be used (not intuitive either) and
  2. Even if you do, it seems to use the wrong password, perhaps it is using the main server users password, not sure.

I just tested this, and it works fine for me ..

Did you first add any users on the "Edit Mail and FTP Users" page for the sub-server? Only users associated with the sub-server can be granted access to its SVN repositories - not users from the top-level virtual server.

It is very strange to have to create a sub-server user first. If you insist, I guess it's ok to require that though not obvious.

But, for my second test, yes, I created a sub-server user with a different password than the main server user. For the sub-server user, it did create every thing it is supposed to, but, the SVN password for the user did not work.

You don't actually have to create the user first - you could add the repository, then create the user and grant him access to the repo.

As for the login problem, are you sure you were using the full username? It will be something like steve.subserver ..

Of course, since change the password only made it work.

Actually, I was wrong about the username - you only need to use the first part of the username, without the domain extension.

On a test system, that works fine for me..