[cvsnt] Using SSPI destroys fileattr.xml

Jelinek, Robert jelinek.robert at siemens.com
Thu Apr 13 16:51:21 BST 2006


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Version: CVSNT 2.5.03 (Scorpio) Build 2260 (Client and Server)
 
If SSPI is used for authentication, then the username becomes something
like domain/username. This leads to problems with fileattr.xml (it gets
corrupted), so further access always fails.
As far as I have seen the problem is the syntax for CXmlNode::Lookup,
because for this method the character '/' is used for separation of
options:
 
f.e. an cvs edit leads to
"file[@name=F'filename']/editor[@name=U'domain/username']". This string
should be separated to the file- and the editor-option, but it is also
splitted after the domain.
 
My own solution is to replace the '/'-character by something different (
'$' )  in the function sspi_auth_procotol_connect near the line
 
sspi_protocol_interface.auth_username = strdup(line+3); 
 
I have also used this position to lowercase the username (and domain),
because windows sometimes uses uppercase, sometimes lowercase usernames
(which leads to very funny situations when you do an edit and afterwards
an unedit and the unedit is forbidden, because of a different username
[xyz != Xyz]).
 
with kind regards,
Robert Jelinek
 
btw: Is this the right place to ask for an integration of CVSNT 2.5.03
into WinCVS?



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook