[cvsnt] Re: Mixing :local: and client/server protocols (was: Whenyou gotta....)

Bo Berglund Bo.Berglund at system3r.se
Tue Jun 15 09:36:44 BST 2004


I didn't realize that the initial checkout actually store the user AND
password in the CVS/Root files. I thought that the password was stored
in a location in the Registry and since the checkout was done by a real
user to begin with I had to set this -d parameter to get it to work when
the update is launched from the postcommit script, since that would run
in a different context and thus have access to different User hive in
the registry.

But I just tested and it really stores both user and password so the only
thing that needs to be done is initially to check out using the correct
user/password combination to override the Windows login.

Thanks for pointing this out!

/Bo

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Oliver Giesen
Sent: den 15 juni 2004 09:23
To: cvsnt at cvsnt.org
Subject: [cvsnt] Re: Mixing :local: and client/server protocols (was:
Whenyou gotta....)


Bo Berglund wrote:
> I use the same thing in the postcommit script and mine looks like this
> (it is a batch file called from postcommit):
> @echo off
> d:
> cd d:\Websites\company
> cvs -d :sspi:cvsupdater:password at cvsserver:/PC update -d
> 
> Note that it is important to do the two commands D: and cd to the
> website sandbox.
> Then a simple update command using a specified user with the user
> password entered on the script line works fine.

FWIW: Are you aware that passing the CVSROOT to Update via the global -d 
option has no effect at all? Update will always use the CVSROOT that's 
stored in the ./CVS/Root files no matter what you pass on the 
commandline or store in the CVSROOT environment variable. The global -d 
option is only honored by commands that work on the repository rather 
than the sandbox, i.e. init, import, ls, rtag, rlog, rannotate, etc. and 
checkout if it's a fresh one. All others (e.g. update, status, add, 
remove, log, etc.) just silently ignore it.

Cheers,

-- 
Oliver
----	------------------
JID:	ogiesen at jabber.org
ICQ:	18777742	(http://wwp.icq.com/18777742)
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt



More information about the cvsnt mailing list