You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeff <jg...@columbia.edu> on 2004/07/22 14:11:20 UTC

authentication client caching

Hi,

I was having difficulties getting my svn client to cache my 
authentication username/password.  I'm using subversion 1.0.4.    It 
always prompts me for my client credentials whenver I do the normal svn 
commands.  In my .subversion/config,  store-auth-creds is set to 
"yes"... (by the way, which the documentation said was default "yes", 
but the config file came with a commented-out "no").

I tried searching the mailing lists for anyone else having similiar 
problems, but no one seemed to have problems with client caching.  Am I 
doing anything glaringly wrong?

$ pwd
/home/jeff/.subversion/auth
$ ls -alR .
.:
total 20
drwx------  5 jeff jeff 4096 Jul 13 16:55 .
drwxrwxr-x  3 jeff jeff 4096 Jul 13 17:08 ..
drwxrwxr-x  2 jeff jeff 4096 Jul 13 16:55 svn.simple
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 svn.ssl.server
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 svn.username

./svn.simple:
total 8
drwxrwxr-x  2 jeff jeff 4096 Jul 13 16:55 .
drwx------  5 jeff jeff 4096 Jul 13 16:55 ..

./svn.ssl.server:
total 8
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 .
drwx------  5 jeff jeff 4096 Jul 13 16:55 ..

./svn.username:
total 8
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 .
drwx------  5 jeff jeff 4096 Jul 13 16:55 ..
$


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: authentication client caching

Posted by Jeff Eng <jg...@columbia.edu>.
Thanks for all your help.

Jeff

Ben Collins-Sussman wrote:

> Jeff Eng wrote:
>
>> Anyway, so am I right concluding that credential caching is not an 
>> option with the svn+ssh:// access method  because my SSH client needs 
>> to do the caching, not the SVN client?
>
>
> You are correct.  It's ssh prompting you, not svn.  So I'd recommend 
> using something like ssh-agent to do in-memory caching.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: authentication client caching

Posted by Ben Collins-Sussman <su...@collab.net>.
Jeff Eng wrote:

> Anyway, so am I right concluding that credential caching is not an 
> option with the svn+ssh:// access method  because my SSH client needs to 
> do the caching, not the SVN client?

You are correct.  It's ssh prompting you, not svn.  So I'd recommend 
using something like ssh-agent to do in-memory caching.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: authentication client caching

Posted by Jeff Eng <jg...@columbia.edu>.
Actually,  after reading through the svnbook one more time,  I thought 
about it some more, and then realized what's going on is expected behavior.

If I'm going to use svn+ssh, then credential caching is not an available 
feature.  When connecting to the repos, I  have to first create the ssh 
connection/tunnel first.  This is that connection that's prompting me 
for my password everytime  (duh).    Once the connection is done, the 
local svnserve process is spawned and blah blah blah.   The local 
svnseve won't prompt me for a username/password beucase it's like a 
file://// access, right?

Anyway, so am I right concluding that credential caching is not an 
option with the svn+ssh:// access method  because my SSH client needs to 
do the caching, not the SVN client?

thanks,
Jeff


Ben Collins-Sussman wrote:

>On Thu, 2004-07-22 at 15:48, Jeff Eng wrote:
>  
>
>>Sure.  A transcript of svn usage (with names changed to protect the 
>>innocent) :
>>    
>>
>
>Thanks for the transcript!
>
>Now, my next question:  did you ever define a 'realm' in
>repos/conf/svnserve.conf?  If not, try doing so, and see if that fixes
>the problem.
>
>
>  
>

Re: authentication client caching

Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-07-22 at 15:48, Jeff Eng wrote:
> Sure.  A transcript of svn usage (with names changed to protect the 
> innocent) :

Thanks for the transcript!

Now, my next question:  did you ever define a 'realm' in
repos/conf/svnserve.conf?  If not, try doing so, and see if that fixes
the problem.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: authentication client caching

Posted by Jeff Eng <jg...@columbia.edu>.
Sure.  A transcript of svn usage (with names changed to protect the 
innocent) :

$ svn co svn+ssh://[blanked out net addr]/path/to/subversion/docs/ mycopy
Keyboard-interactive:
PAM authentication
Password:
A  mycopy/development
A  mycopy/development/guidlines.txt
A  mycopy/development/versioning.html
A  mycopy/development/img
A  mycopy/development/img/ch04dia3.png
A  mycopy/projects
A  mycopy/projects/sundial
A  mycopy/projects/sundial/1.1.txt
Checked out revision 34.
$ cd mycopy/
$ svn update .
Keyboard-interactive:
PAM authentication
Password:
At revision 34.
$ ls
development  projects
$ cd development/
$ ls -l
total 44
-rw-rw-r--  1 s_jeng s_jeng 12843 Jul 22 16:36 guidlines.txt
drwxrwxr-x  3 s_jeng s_jeng  4096 Jul 22 16:36 img
-rwxrwxr-x  1 s_jeng s_jeng 23980 Jul 22 16:36 versioning.html

$ svn log ./img
Keyboard-interactive:
PAM authentication
Password:
------------------------------------------------------------------------
r19 | jeff  | 2004-07-15 10:54:09 -0400 (Thu, 15 Jul 2004) | 6 lines
- Added images and an img dir for version document
------------------------------------------------------------------------

$ ls ~/.subversion/auth -Ral
/home/jeff/.subversion/auth:
total 20
drwx------  5 jeff jeff 4096 Jul 13 16:55 .
drwxrwxr-x  3 jeff jeff 4096 Jul 13 17:08 ..
drwxrwxr-x  2 jeff jeff 4096 Jul 13 16:55 svn.simple
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 svn.ssl.server
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 svn.username

/home/jeff/.subversion/auth/svn.simple:
total 8
drwxrwxr-x  2 jeff jeff 4096 Jul 13 16:55 .
drwx------  5 jeff jeff 4096 Jul 13 16:55 ..

/home/jeff/.subversion/auth/svn.ssl.server:
total 8
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 .
drwx------  5 jeff jeff 4096 Jul 13 16:55 ..

/home/jeff/.subversion/auth/svn.username:
total 8
drwxrwxr-x  2 jeff jeff 4096 Jun 10 12:23 .
drwx------  5 jeff jeff 4096 Jul 13 16:55 ..

$  less ~/.subversion/config
###  [.......]
### Section for authentication and authorization customizations.
### Set store-auth-creds to 'no' to avoid storing your subversion
### credentials in the auth/ area of your config directory.
### It defaults to 'yes'.  Note that this option only prevents
### saving of *new* credentials;  it doesn't invalidate existing
### caches.  (To do that, remove the cache files by hand.)
[auth]
store-auth-creds = yes

### Section for configuring external helper applications.
### Set editor to the command used to invoke your text editor.
###   This will override the environme................

$


Ben Collins-Sussman wrote:

>Can you please show us a transcript, rather than describing it?
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: authentication client caching

Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-07-22 at 09:11, Jeff wrote:
> Hi,
> 
> I was having difficulties getting my svn client to cache my 
> authentication username/password.  I'm using subversion 1.0.4.    It 
> always prompts me for my client credentials whenver I do the normal svn 
> commands. 

Can you please show us a transcript, rather than describing it?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org