Hello Gunnar!
On Friday 06 June 2008 Gunnar Thielebein wrote:
> I have an issue when using sudo with fsvs in environments where we don't
> have the svn-client installed. We do a userbased auth before committing
> via an http-url.
>
> The error message is this:
> > (R)eject or accept (t)emporarily? t
> > Authentication realm: <https://*********:443
> > <https://svn.tpip.net:443>> SVN - Repository
> > Password for 'root':
> >
> > An error occurred: RA layer request failed (175002)
> > in ci__work: svn_ra_get_commit_editor: OPTIONS request failed on
> > '/repos/tp/OPS/********/office'
>
> Where it does ask for a password I only hit return.
>
> When we installed svn and did "svn ls" with the same url it asked for
> username and saved the credentials.
But that was as a user, not as root (which sudo switches too), right?
I'm not sure what happens.
If I do
sudo bash -c set | grep HOME
I still get the user-home; so the subversion-libraries should take the stored
authentication information.
Maybe it gets rejected because it has a different owner?
Could you do a "fsvs up -d" and "strace fsvs up" of empty updates, ie. where
nothing gets fetched? Maybe I find a hint where to look there.
> I would also like to propose to set a -u or -l parameter for specifying
> the user when committing via fsvs. This would ease the user handling in
> environments where you have different admins working with only one
> (root) account.
Yes ... that's maybe necessary.
IIUYC that should be used for the "svn:author" value? I'm not sure whether the
subversion libraries allow to use *any* value (or restrict to the username,
or the remote user...), but we can try.
How about I make that configurable?
- Either you use environment variables on your authorized_keys:
environment="FSVS_AUTHOR=some_user" ssh-rsa ...
- Or, if that is not specified, it could be taken from /etc/fsvs/config as
author=some_user
Then I could add the special case that a '$' as first character means get
value from the environment; then /etc/fsvs/config could read
author=$SUDO_USER
If the ssh key is used, the environment variable FSVS_AUTHOR is used; else
$SUDO_USER is taken.
How about that?
Regards,
Phil
[ PS: Yes, Marek is a polish name ... but it's my surname :-]
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]