LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-24-2009, 10:40 AM   #1
lakshmi4linux
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Rep: Reputation: 15
Generalize the authentication for SVN


Hi,

Plz help me out!

I'm have 21 repositories in my SVN. Instead of providing all usernames and password in each and every repository(in "passwd" file under "conf" directory),Is it possible to make a generalized set where all username and password are available,so that all repository can be accessed using the username and password. Is it something related to " password-db = passwd"(in svnserve.conf file under conf directory).

Thanks in Advance!!!
 
Old 03-25-2009, 03:18 AM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
I'm assuming that you are using basic HTTP authentication which means you are using a password database cretedd/modified with htpasswd.

The htpasswd DBs are generic, which means it's not bound to a repo or anything. So you can easily do following things:
1. create a one DB for all SVN users and point to that DB for all repos
2. use Access control lists to specify which users have read and write access to the repos

This method is not too flexible, but will work for basic needs. If you need more flexible authentication needs you might have to look into other methods.

I assume that you know how to create password files and add/edit/remove users. So here's what you can do. Use htpasswd to create a file which can be used for all the repos. You can point to it using the AuthUserFile directive.
Eg:
<Location /repos>
DAV svn
SVNParentPath /var/www/svn/repos
AuthzSVNAccessFile /etc/svn-acl-conf
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>

The AuthzSVNAccessFile directive can be used to specify the Access Controls you want for the repos. In the above example the ACL file is /etc/svn-acl-conf which will have content similar to:
Eg:
[groups]
staff = joe, george

[framework:/]
john = r
@staff = rw

The last example have a repository named "framework" and repo path is /repo. There's a group defined as "staff" which consists of users joe and george. The group staff have read-write accress to framework repo, which the user john only have read-only access.

Hope this helps you. For more info refer this ans this. While the two links discuss specific cases, you might be able to get something from them.
 
Old 03-25-2009, 09:15 AM   #3
lakshmi4linux
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the reply.

One more favor needed.

Plz forgive me if my question is chilli.

I'm not using HTTP method of authentication. Apache not get installed. SVN is alone resides in Linux machine,Rest of the users are using Tortoise SVN client to import and checkout. For this situation,How can i make the username and password in generalised format for all repositories.

Thanks in Advance!
 
Old 03-27-2009, 03:13 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Unless you provide more information about your setup, there's nothing much I can tell to help.

You are saying that you aren't using basic HTTP auth for Subversion. I assumed that you were using basic auth because you haven't mentioned your auth type and you mentioned something about the password files. So if you need help with your case you need to tell us what authentication method you are trying to configure.

Secondly, your explanation does not say anything about how you serve Subversion (svn). You just say the repos are on a server and the client is usually TortoiseSVN. My guess is you still have Subversion serving under a Apache/Web server, because it's the most common setup to host Subversion. And probably have basic http auth too.

That is my guess, please check with the SysAdmin of the machine holding the svn repos (if it's not you, BTW). If you provide more info about your setup like OS/Distro, version, Subversion setup details we will able to help you better.
 
  


Reply

Tags
apache, subversion, svn


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 05:50 PM
SVN User authentication??? ajeetraina Linux - Server 5 07-09-2007 02:18 AM
Unable to make generalize shell script pawan_songara Programming 2 08-29-2006 03:00 PM


All times are GMT -5. The time now is 09:05 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 Google+: linuxquestions
Open Source Consulting | Domain Registration