Game Development Community

Cvs And Sspi

by Craig Ball · in General Discussion · 10/02/2003 (6:13 am) · 5 replies

OK I admit I'm new to this whole CVS malarky, so any help anyone can throw my way would be more than appreciated.

OK, here's my problem.

I've got CVSNT set up on a Windows XP machine (call it 'MYCVS'), connected to a domain, with a repository called 'rep'. I want to be able to logon to CVS using the domain user accounts as the authentication method. Im pretty sure Im right in saying that I need to use SSPI as the protocol for connecting to CVS.

OK, here's the commands I am using and the error messages I get.

On the MYCVS machine:
> cvs -d :sspi:mycvs:/rep login

It then asks for the password of the domain user logged in, which I supply and it logs in. Woohoo, all is dandy.

Then I go to a remote machine with WinCVS 1.2, and type:
> cvs -d :sspi:mycvs:/rep login

and the reply I get is:
cvs login: unknown method in CVSroot: :sspi:mycvs:/rep
cvs [login aborted]: Bad CVSROOT.

Not quite what I expected. Im not sure what it's saying when it gives the error 'unknown method'.

I can log in to CVS from the remote machine using :pserver: protocol, and entering the name and password of one of MYCVS's local users, and check files out, so I know there's nothing wrong with CVS or the network.

As I said Im fairly new to all this, so any help would be appreciated. Thanks

#1
10/02/2003 (6:52 am)
Hello Craig,

I encountered CVS the first time when I bought Torque more than a year ago. Since then, I've switched ALL of my development from SourceSafe to CVS.

I wouldn't have been able to do so if I haven't stumbled upon this document: Open Source Development With CVS.

Helped me a lot.

I hope this helps.

Alex
#2
10/02/2003 (7:40 am)
@Craig: You are using the command wrong. The format for the chroot is as follows
:method:username@server:/repositorydir login

Didn't knew there was a method called sspi... I use pserver for normal cvs, and ext for using more secure cvs via ssh.

Regards,
Xavier.
#3
10/02/2003 (4:31 pm)
@Alex, thanks for the gen, it looks like a very useful resource. Nice one.

@Xav, the sspi (dont ask me what it stands for, server side ... protocol interrogation lol, I just made that up) protocol lets you logon using your windows domain username and password - hence why you can get away with the :server instead of :username@server. It basically means you dont need another username and password to remember, great for people with rubbish memories like me. I think you can put the username in, but it looks for that username on the domain. I can logon using :pserver:user@server:/repoitory login - works a treat, but I dont want to have to create loads of users or aliases if I can just use sspi.

I will let you know if I find anything else out.
#4
10/02/2003 (5:30 pm)
Oh, the windows part explains why I didnt knew about it :)

Sorry for the unuseful help :)
#5
10/15/2003 (12:31 am)
I meant to post this earlier - SSPI support in WinCVS started in version 1.3b. I've tried this and it works.