LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-15-2008, 02:24 PM   #1
lil_drummaboy
Member
 
Registered: May 2003
Location: Victoria, CANADA!
Distribution: OpenBSD, Slackware, Debian
Posts: 85

Rep: Reputation: 15
Wink Subversion (DAV/Apache) and password


Hey Guys,

I have some repositories in Subversion I would like password protected on commit (which it does fine) but ALSO on checkout. So basically, you would need to be authenticated to access anything.

Previously we had the following setup, allowing checkouts, but asks for credentials on commits:

Code:
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn/>
   DAV svn

   SVNParentPath /home/svn
   #list all repos.
   SVNListParentPath on

   <LimitExcept GET PROPFIND OPTIONS REPORT>
      # Require SSL connection for password protection.
      #SSLRequireSSL

      AuthType Basic
      AuthName "xxx Inc. Repositories"
      AuthUserFile /home/svn/svn_auth
      Order deny,allow
      Require valid-user
   </LimitExcept>

</Location>
This is what I have currently, it asks for auth when you visit it in a web browser, but when you checkout from linux command line "svn co https://...." it DOES NOT ask for a password. So this seems to have only locked HTTP/Web access viewing of our repositories, but still allows the linux subversion command to checkout without password:

Code:
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn/>
   DAV svn

   SVNParentPath /home/svn
   #list all repos.
   SVNListParentPath on

   # Authentication for all commands:
   AuthType Basic
   AuthName "xxx Inc. Repositories"
   AuthUserFile /home/svn/svn_auth
   Order deny,allow
   Require valid-user

</Location>
Has anyone been able to fix this in the past? I actually did search google and didn't find quite what I was looking for.

Cheers/thanks!

Last edited by lil_drummaboy; 07-15-2008 at 02:26 PM.
 
Old 07-23-2008, 01:29 PM   #2
lil_drummaboy
Member
 
Registered: May 2003
Location: Victoria, CANADA!
Distribution: OpenBSD, Slackware, Debian
Posts: 85

Original Poster
Rep: Reputation: 15
Does anyone know of a forum that would be more appropriate for this question, it seems like a really simple thing to do with SVN, just it still allows svn clients in and only asks for auth when you go to the SVN in a web browser.
 
Old 07-24-2008, 12:36 AM   #3
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 31
This probably belong in the software forum.

Anyway, assuming you are using linux clients based on your post, did you try disabling the storing of auth-creds on your client systems?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling apache with dav for subversion linuxmandrake Suse/Novell 0 09-18-2007 09:44 PM
subversion with apache 2.2.4 neocontrol Linux - Server 1 07-02-2007 04:27 PM
Subversion thru Apache Problem jacksonr Linux - General 1 05-15-2006 07:18 PM
apache web dav paul_mat Linux - Networking 0 03-19-2006 05:32 AM
Subversion and Apache BoonZie Linux - Software 0 11-27-2004 03:45 AM


All times are GMT -5. The time now is 01:25 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration