Hi Phil,
When using ssl-client authentication a password is not needed anymore at
least in our setup.
So I hacked this dirty patch which introduces a new option "password"
for setting a global (blank) password.
I works for me but I don't know if there are better ways of implementing
this.
If it would be possible to save the credentials in home ~/.subversion
(without svn client) this option would
not be neccessary at all.
But because I have defined /etc/subversion as configuration path
(because ssl configuration should be in global scope) imo it isn't saved
yet.
I am interested what you think about this!
Best Regards,
Gunnar
--- src-old/options.h 2008-06-11 19:10:35.000000000 +0200
+++ src/options.h 2008-08-07 10:52:48.000000000 +0200
@@ -86,6 +86,11 @@
/** The author for commit.
* See \ref o_author. */
OPT__AUTHOR,
+
+ /** Set a global password, for anonymous co/ci.
+ * See \ref o_passwd. */
+ OPT__PASSWD,
+
/** Whether commits without changes should be done.
* See \ref o_empty_commit. */
OPT__EMPTY_COMMIT,
--- src-old/options.c 2008-06-14 19:54:57.000000000 +0200
+++ src/options.c 2008-08-07 11:02:36.000000000 +0200
@@ -195,7 +195,9 @@
[OPT__AUTHOR] = {
.name="author", .cp_val="", .parse=opt___store_env_noempty,
},
-
+ [OPT__PASSWD] = {
+ .name="password", .cp_val="", .parse=opt___store_string,
+ },
/* I thought about using opt___normalized_path() for these two; but that
* would be a change in behaviour. */
[OPT__WAA_PATH] = {
--- src-old/racallback.c 2008-08-07 10:42:34.000000000 +0200
+++ src/racallback.c 2008-08-07 10:16:29.000000000 +0200
@@ -55,7 +55,8 @@
!(isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)),
opt__get_int(OPT__AUTHOR) ?
opt__get_string(OPT__AUTHOR) : NULL,
- NULL, /* Password */
+ opt__get_int(OPT__PASSWD) ?
+ opt__get_string(OPT__PASSWD) : NULL, /* Password */
NULL, /* Config dir */
0, /* no_auth_cache */
cfg,
--- src-old/dox/options.dox 2008-06-13 16:43:22.000000000 +0200
+++ src/dox/options.dox 2008-08-07 11:19:02.000000000 +0200
@@ -355,6 +355,14 @@
\endcode
that would override the config values.
+\section o_passwd Password
+
+In some scenarios like ssl-client key authorisation it is more comfortable to have anonymous logins
+for committing checkout. With password option it is possible to define a global password.
+
+\code
+ password=""
+\endcode
\section o_commit_to Destination URL for commit
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]