• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing Subversion over http

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have configured apache and subversion. I am able to access subversion over http as intended like this:


And this is the only way that I would like other users to access the repository. ie, I would like to limit user to access repository through http so that I can setup authentication for security.
But I am still able to access the repository with svn as follows:
and because of this my apache security is bypassed. How can I configure so that accessing with svn is prohibited?

Thank you.
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You haven't provided sufficient context. Using a "svn:" URL in my browser simply results in a message that the browser doesn't understand the "svn" protocol. If you mean using the "svn:" protocol on a command-line SVN request, just don't run the SVN server - which also means don't have SVN set up to come up in the superserver ([x]inetd) if you have one.

You don't need the SVN server when using WebDAV to access a subversion archive.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like you are still running the Subversion server - make sure it is not running.
 
Tim Holloway
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Sounds like you are still running the Subversion server - make sure it is not running.



concurrence. There's little need to run the Subversion server if you're using Apache to interface with svn.

Also, if you ever decide you need to run the subversion server, it has its own security system, as outlined in the subversion redbean book.
 
Tim Francisco
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:

Peter Johnson wrote:Sounds like you are still running the Subversion server - make sure it is not running.



concurrence. There's little need to run the Subversion server if you're using Apache to interface with svn.

Also, if you ever decide you need to run the subversion server, it has its own security system, as outlined in the subversion redbean book.



That was it. Both of them were running!
Thank you Gentlemen!
 
Tim Francisco
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gentlemen,
While my subversion installation was working, I uninstalled subversion with apache embeded in it and reinstalled it clean. Everything works fine except accessing it over http which gives me the following error which left me without clue:


I have the followings turned on in httpd.conf:



Here is my Location in httpd.conf


I can access my repository over svn protocol without any problem as shown below:


Any idea as to what I am missing here as far as configuration is concerned or something else?

Thank you.
T
 
Tim Holloway
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That looks pretty incomplete. And probably you need "C:\", not "C:/" in Apache.

Here's a setup I use. It's a bit extreme, since I use LDAP as my authenticator, but the same basic setup also works with things like .htaccess control:
 
Tim Francisco
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:That looks pretty incomplete. And probably you need "C:\", not "C:/" in Apache.

Here's a setup I use. It's a bit extreme, since I use LDAP as my authenticator, but the same basic setup also works with things like .htaccess control:



Now I have this:


As expected, an authenication box pops up. Once I enter userid and password, I still get the same error:
 
Tim Holloway
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the format of your svn-auth-file? It needs to have been created by the htpasswd utility - it's an Apache authorization file.

The svn docs go into a lot of detail on authorization, but that's for the standalone Subversion server and not Apache. Which can be confusing. Use Apache's security documentation, not Subversion's.
 
Tim Francisco
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:What's the format of your svn-auth-file? It needs to have been created by the htpasswd utility - it's an Apache authorization file.

The svn docs go into a lot of detail on authorization, but that's for the standalone Subversion server and not Apache. Which can be confusing. Use Apache's security documentation, not Subversion's.



Here's how I created it:


Since its encrypted, it looks like trai:$apr1$quKOnClC$X.SuJqs7.mEyyXiHqQoBv.

 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic