Hi all,
here are some screenshots and prints:
These are the various commands I tried (and as this is just a test machine it is ok to see the password ☺):
[cid:image001.png_at_01CD591A.53E041C0]
These are the results on the slave which the pre-revprop-change hook writes to the log using this code:
@ECHO OFF
:: Set up the list of possible parameters.
set repository=%1
set revision=%2
set userName=%3
echo "Arguments: %0 %*" >> E:\Programs\svn_repository\vpl_slave\hooks\revprop-change.log
echo "Repo: %repository% Rev: %revision% User: %userName%, %3" >> E:\Programs\svn_repository\vpl_slave\hooks\revprop-change.log
:: Allow the log message itself to be changed.
if /I not "%userName%" == "svnsync" goto ERROR_USER
goto :eof
:ERROR_USER
echo Only the svnsync user may change the repository >&2
goto ERROR_EXIT
:ERROR_EXIT
exit /b 1
Content of the logfile:
"Arguments: "E:\Programs\svn_repository\vpl_slave\hooks\pre-revprop-change.bat" E:\Programs\svn_repository\vpl_slave 0 "" svn:sync-lock A"
"Repo: E:\Programs\svn_repository\vpl_slave Rev: 0 User: "", """
"Arguments: "E:\Programs\svn_repository\vpl_slave\hooks\pre-revprop-change.bat" E:\Programs\svn_repository\vpl_slave 0 "" svn:sync-lock A"
"Repo: E:\Programs\svn_repository\vpl_slave Rev: 0 User: "", """
"Arguments: "E:\Programs\svn_repository\vpl_slave\hooks\pre-revprop-change.bat" E:\Programs\svn_repository\vpl_slave 0 "" svn:sync-lock A"
"Repo: E:\Programs\svn_repository\vpl_slave Rev: 0 User: "", """
"Arguments: "E:\Programs\svn_repository\vpl_slave\hooks\pre-revprop-change.bat" E:\Programs\svn_repository\vpl_slave 0 "" svn:sync-lock A"
"Repo: E:\Programs\svn_repository\vpl_slave Rev: 0 User: "", """
The user validation is done against local passwd file which certainly contains the svnsync user on both servers.
Cheers
Neil
-----Original Message-----
From: Karl Heinz Marbaise [mailto:khmarbaise_at_gmx.de]
Sent: Dienstag, 3. Juli 2012 10:51
To: Warden, Neil; users_at_subversion.apache.org
Subject: Re: RE: svnsync does not pass username
Hi Neil,
do you have special characters in the password things like "~%!" ? Might be a problem on Windows ? may be you need to escape some characters...
Is the authentication done via LDAP or Active Directory ? Have you given the correct user names incl. the prefix for ldap or AD ?
And it would be helpful to see the full command line as mentioned by others..
Kind regards
Karl-Heinz Marbaise
--
MfG
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
Firma: Capgemini Deutschland GmbH
Geschäftsführer: Dr. Michael Schulte (Sprecher) • Dr. Uwe Dumslaff • Burkhard Kehrbusch • Josef Ranner
Aufsichtsratsvorsitzender: Antonio Schnieder
Amtsgericht Berlin-Charlottenburg, HRB 98814
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message.
Received on 2012-07-03 12:51:17 CEST