You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2012/07/03 09:44:42 UTC
Re: svnsync does not pass username
Hi Neil,
have you given the --sync-username and --sync-password instead ? Cause --username and --password are used for authentication against the local repository and not for authentication against the remote repository ?
Kind regards
Karl-heinz Marbaise
-------- Original-Nachricht --------
> Datum: Tue, 3 Jul 2012 08:20:42 +0200
> Von: "Warden, Neil" <ne...@capgemini.com>
> An: "users@subversion.apache.org" <us...@subversion.apache.org>
> Betreff: svnsync does not pass username
> Hi all,
>
> I set up a slave repository. While running the svnsync command on the
> master using the --username and --password options those values are not passed
> to the slave machine. My pre-revprop-change hook get values for %1
> (repository) and %2 (revision), but only empty string in %3 (should be the
> username).
> Executing the sync on the slave server it works, I can see the correct
> username in the hook.
> I am running two Win2008 server machines.
>
> Does anybody have a clue where to look at?
>
> Thanks in advance
> Neil
>
>
> _______________________________________________________________________
> [cid:image001.gif@01CD58F4.BCB7D080]Neil Warden
> Senior Consultant; Custom Solution Development, D-A-CH | Application
> Services
>
> Capgemini | Düsseldorf
> Phone: +4921156623362 - Mobile: +4915140250487
> Fax: +4921156623450 - e-mail: neil.warden@capgemini.com
> www.de.capgemini.com<http://www.de.capgemini.com/>
>
> Wanheimerstrasse 68, 40468 Düsseldorf, Germany
> People matter, results count.
> _______________________________________________________________________
>
>
>
> 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.
--
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
Re: svnsync does not pass username
Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Thorsten Schöning,
am Dienstag, 3. Juli 2012 um 10:40 schrieben Sie:
> Provide a complete command line, there surely is an error in it.
Have a look at the following example:
svnsync sync "somePath" --source-username xy --source-password z --sync-username ab --sync-password z --non-interactive
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow
Re: svnsync does not pass username
Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Warden, Neil,
am Dienstag, 3. Juli 2012 um 09:59 schrieben Sie:
> I have tried all combinations, --username, --sync-username and --source-username :(
Provide a complete command line, there surely is an error in it.
> Could it be some version mismatch, because master and slave run
> different versions of SVN (Master: 1.6.13 Slave: 1.7.5).
No.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow
RE: svnsync does not pass username
Posted by "Warden, Neil" <ne...@capgemini.com>.
And that was the winning hint ..... I unfortunately forgot the authentication rule in the httpd.conf for the svn-proxy-sync location, just had it for the "normal" access of the slave repo.
Too stupid, I know. But tata, now it works :)
Simply did not know that apache cuts out authentication details if it did anonymous access.
Thanks a lot!!!
Cheers
Neil
-----Original Message-----
From: Bert Huijben [mailto:bert@qqmail.nl]
Sent: Dienstag, 3. Juli 2012 14:53
To: 'Thorsten Schöning'; users@subversion.apache.org
Subject: RE: svnsync does not pass username
> -----Original Message-----
> From: Thorsten Schöning [mailto:tschoening@am-soft.de]
> Sent: dinsdag 3 juli 2012 14:04
> To: users@subversion.apache.org
> Subject: Re: svnsync does not pass username
>
> Guten Tag Warden, Neil,
> am Dienstag, 3. Juli 2012 um 12:49 schrieben Sie:
>
> > 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: "", """
>
> Looks to me your username somewhere is changed to "", because this is
> logged as %userName% and %3. If %3 would be an empty string, it
> wouldn't get replace to "" in my opinion. If username is "" somehow,
> your if fails, of course.
Are you sure the target repository doesn't allow anonymous access?
If it allows anonymous access the client will only upgrade to authentication when it needs to.
Bert
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.
RE: svnsync does not pass username
Posted by Bert Huijben <be...@qqmail.nl>.
> -----Original Message-----
> From: Thorsten Schöning [mailto:tschoening@am-soft.de]
> Sent: dinsdag 3 juli 2012 14:04
> To: users@subversion.apache.org
> Subject: Re: svnsync does not pass username
>
> Guten Tag Warden, Neil,
> am Dienstag, 3. Juli 2012 um 12:49 schrieben Sie:
>
> > 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: "", """
>
> Looks to me your username somewhere is changed to "", because this is
> logged as %userName% and %3. If %3 would be an empty string, it
> wouldn't get replace to "" in my opinion. If username is "" somehow,
> your if fails, of course.
Are you sure the target repository doesn't allow anonymous access?
If it allows anonymous access the client will only upgrade to authentication when it needs to.
Bert
Re: svnsync does not pass username
Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Warden, Neil,
am Dienstag, 3. Juli 2012 um 12:49 schrieben Sie:
> 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: "", """
Looks to me your username somewhere is changed to "", because this is
logged as %userName% and %3. If %3 would be an empty string, it
wouldn't get replace to "" in my opinion. If username is "" somehow,
your if fails, of course.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/
Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow
RE: RE: svnsync does not pass username
Posted by "Warden, Neil" <ne...@capgemini.com>.
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@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@gmx.de]
Sent: Dienstag, 3. Juli 2012 10:51
To: Warden, Neil; users@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.
Re: RE: svnsync does not pass username
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
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
RE: svnsync does not pass username
Posted by "Warden, Neil" <ne...@capgemini.com>.
Hi Karl-Heinz :)
I have tried all combinations, --username, --sync-username and --source-username :(
On the slave side the hook currently writes the passed arguments into a logfile, there I can see that no username is given, in all cases it is an empty string (even when I do not pass any option I would expect to see my logged in username)?!
Could it be some version mismatch, because master and slave run different versions of SVN (Master: 1.6.13 Slave: 1.7.5).
Cheers
Neil
-----Original Message-----
From: Karl Heinz Marbaise [mailto:khmarbaise@gmx.de]
Sent: Dienstag, 3. Juli 2012 09:45
To: Warden, Neil; users@subversion.apache.org
Subject: Re: svnsync does not pass username
Hi Neil,
have you given the --sync-username and --sync-password instead ? Cause --username and --password are used for authentication against the local repository and not for authentication against the remote repository ?
Kind regards
Karl-heinz Marbaise
-------- Original-Nachricht --------
> Datum: Tue, 3 Jul 2012 08:20:42 +0200
> Von: "Warden, Neil" <ne...@capgemini.com>
> An: "users@subversion.apache.org" <us...@subversion.apache.org>
> Betreff: svnsync does not pass username
> Hi all,
>
> I set up a slave repository. While running the svnsync command on the
> master using the --username and --password options those values are
> not passed to the slave machine. My pre-revprop-change hook get values
> for %1
> (repository) and %2 (revision), but only empty string in %3 (should be
> the username).
> Executing the sync on the slave server it works, I can see the correct
> username in the hook.
> I am running two Win2008 server machines.
>
> Does anybody have a clue where to look at?
>
> Thanks in advance
> Neil
>
>
> ______________________________________________________________________
> _ [cid:image001.gif@01CD58F4.BCB7D080]Neil Warden Senior Consultant;
> Custom Solution Development, D-A-CH | Application Services
>
> Capgemini | Düsseldorf
> Phone: +4921156623362 - Mobile: +4915140250487
> Fax: +4921156623450 - e-mail: neil.warden@capgemini.com
> www.de.capgemini.com<http://www.de.capgemini.com/>
>
> Wanheimerstrasse 68, 40468 Düsseldorf, Germany People matter, results
> count.
> ______________________________________________________________________
> _
>
>
>
> 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.
--
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
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.