[cvsnt] CVSNT login issues

Bo Berglund Bo.Berglund at system3r.se
Tue Jan 11 11:11:33 GMT 2005


You are out of luck if you want to do this on a common sandbox!
The only way you can ever make it work so that different users
can work on the same sandbox ()not at teh same time though) and
get their own user names registered with the modifications for
trackability is:

1) You have to use the sspi authentication (use :sspi:server:/repo)
2) You have a sandbox checked out on a common PC which is only
   used for code modifications
3) Every time a user wants to change the code he logs on to that
   PC using his own username etc (via the domain)
4) He makes his changes and commits
5) He logs out of the *workstation PC*

In this scenario there is no user information at all stored in the
CVS metedata in the sandbox and cvs will instead use the current
Windows user as the one doing the commit.

If you want to use another connection protocol then the only other
way is to actually have a script file that changes the CVS metadata
in the sandbox folders to reflect the user you want to assign for the
cvs operation. This is done by editing *all* CVS/Root files in the whole
sandbox and replacing the username in the connection string.

Note that the cvs login command will cache the password in the registry
and not in the .cvspass file, that is long ago depreciated!
Also the login is cached indefinitely so you don't have to do another
cvs login every time.
Of course with the sspi protocol you *never* do a cvs login!

/Bo

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Thoppay, Vignesh (GE Consumer & Industrial)
Sent: den 11 januari 2005 10:42
To: cvsnt at cvsnt.org
Subject: RE: [cvsnt] CVSNT login issues


Thanks Bo,Ade and Ankush for your responses.

Ankush - I can not use WinCVS. I am developing a custom application
on top of CVS for a specific requirement.

Ade - I could'nt find .cvspass file. Can you let me know where
      this file would be created? Please note that I would be using domain authentication.

Bo  - I agree with you that If I change the folder location and
login, it works!. But my requirement is something different. Would
be performing this operations on a server where multiple users
would be making changes to the same module.

For example user1 will login and do some changes to a module and  check in the changes.
User2 logs in the same machine and does some changes and has to check in the changes.

Is there any way of telling cvs to use environment variable (CVSROOT) rather than 
retrieving from cache?

Thank you,
Vignesh




-----Original Message-----
From: Bo Berglund [mailto:Bo.Berglund at system3r.se]
Sent: Monday, January 10, 2005 5:09 PM
To: Thoppay, Vignesh (GE Consumer & Industrial); cvsnt at cvsnt.org
Subject: RE: [cvsnt] CVSNT login issues


THis happens because you are running the cvs login command from within the
checked out module folder.
When you do this the environment variable will not be used, instead cvs uses
the cached information in the CVS subfolders of the checked out module.

Go to a different location like c:\temp\test and repeat your commands and now
you will be accepted as user2.

/Bo


-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Thoppay, Vignesh (GE Consumer & Industrial)
Sent: den 10 januari 2005 12:15
To: cvsnt at cvsnt.org
Subject: [cvsnt] CVSNT login issues


Hello CVSNT Experts,
 
       I have an issue working with CVSNT. Can you please help me to resolve it?

Created a repository named "CmsRepository".
Added the following modules to CmsRepository:
      1. Module1
      2. Module2

Steps to reproduce the issue:

Step1:
>From the command prompt, go to a folder. Let us say"D:\testCVSNT" and execute the following commands:
  set cvsroot=:pserver:user1:pass at machine:/CvsRepository
  cvs login

Step2:
 cvs checkout Module1  (Assuming Module1 exist in CvsRepository)

Step3:
  cvs logout

Step4:
   Login with a different user name
   set cvsroot=:pserver:user2:pass2 at machine:/CvsRepository
   cvs login
 
I get  a output from CVSNT as 

Logging in to :pserver:user1 at machine:2401:/CvsRepository

Please note that, though I have changed the user from user1 to user2, it is still logging in as user1.
Can any body explain this behaviou? I am I doing something wrong over here? Please throw some light on this.

Thanks,
Vignesh



_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt



More information about the cvsnt mailing list