Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-12-2011, 02:09 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0

I have SVN clients that use multiple username/password combinations for different tasks against the same repo.

I'd like to have the client cache one username/password pair (a shared read-only account) and not cache other username/password pairs (individual accounts with write access).

I know how to turn it on and off globally. That's not what we want.

Authentication is LDAP (Active Directory) + APACHE + WebDAV SVN

After doing a bit of research and implementing your case in my lab, I came to the following conclusion.

The first time the svn command-line client is executed, it creates a per-user configuration area. On Linux systems, this area appears as a directory named '.subversion' in the user's home directory.

example: /root/.subversion

In your case all users who have logged in till now have their passwords cached here. So now to have those "SPECIFIC USERS CREDENTIALS" still cahced in this file - edit the file and remove unwanted user credentials from it.

you will find following files inside .subversion

svn.simple svn.ssl.client-passphrase svn.ssl.server svn.username

Now you will want to remove specific credentials from the disk cache.
To do this, you need to navigate to svn.simple directory and manually delete the appropriate cache file.
Credentials are cached in individual files; if you look inside each file, you will see keys and values.
The svn:realmstring key describes the particular server realm that the file is associated with:

***sample svn.simple file output***

$ ls ~/.subversion/auth/svn.simple/

$ cat ~/.subversion/auth/svn.simple/5671adf2865e267db74f09ba6f872c28

K 8
V 3
K 8
V 4
K 15
V 45
<> Joe's repository

Once you have located the proper cache file, just delete it.
(similarly navigate to other directories and delete the unwanted users credentials)

Now to permanently disable caching,
Navigate to .subversion/config file and uncomment the following lines under [auth]

store-passwords = no
store-auth-creds = no

To disable password caching for a particular one-time command, pass the --no-auth-cache option on the command line.

Last edited by XavierP; 05-13-2011 at 08:19 AM. Reason: Merged to allow for 0 Reply to still apply


apache, authentication, ldap, subversion, webdav

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subversion Version issue mdfakkeer Linux - Server 5 10-14-2010 07:30 AM
SVN subversion configuration soni_silver17 Linux - Software 1 12-04-2009 01:38 AM
SubVersion Configuration Problem soni_silver17 Linux - Server 0 12-03-2009 03:55 AM
Subversion issue? your_shadow03 Linux - Newbie 2 01-30-2009 06:27 AM
Subversion Eclipse Issue? your_shadow03 Linux - Newbie 0 11-06-2008 11:37 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:28 AM.

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