It seems that CVSNT is still trying to authenticate the user with 
LogonUser even when SystemAuth=yes, and even when it doesn't even have a 
password to use. I think that the server needs to check the SystemAuth 
setting before trying any password-checking. For example, the attached 
patch seems to work for my setting (but, I don't use any passwd file at 
all). The patch has a "_asm int 3;" breakpoint in it so that you can 
start debugging at what I think is the right spot.

I hope this helps,
Brian



Bo Berglund wrote:
> On Sun, 17 Feb 2002 19:09:44 +0000 (UTC), Brian Smith
> <[EMAIL PROTECTED]> wrote:
> 
> 
>>Yeah, but really I would like to have the new features available in the 
>>Betas. My problem occurs with Beta 6 (I pulled CVSNT from its CVS 
>>repository with the beta-6 tag, built it, and then tested it) too. I 
>>think I "narrowed" down my problem to have occursed between checkins on 
>>Jan 17 and Beta 6; I tried to test by pulling by date on the 18th and 19 
>>and it seemed like CVSNT couldn't even recognize the NTSERVER protocol 
>>at all.
>>
>>
> 
> Try pulling the HEAD revision of the cvsnt repository instead and
> build that. Yesterday Tony found and fixed a problem with the ntserver
> protocol if the cvsnt cvs.exe got used by WinCvs. There is no longer
> an error message about the nonworking ntserver protocol.
> So you can now use the cvsnt cvs.exe with WinCvs and get the new
> functions. You need to copy the cvs.exe and all <name>_protocol.dll
> files produced by the build over to WinCvs 1.3 to use it.
> The new function cvs ls works like a charm, should be the base for
> Jerzy or someone else to finally build a repository browser for WinCvs
> too. :-)
> 
> 
> 
> /Bo
> (Bo Berglund, developer in Sweden)
> _______________________________________________
> Cvsnt mailing list
> [EMAIL PROTECTED]
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
> 

Index: src/server.c
===================================================================
RCS file: /usr/local/cvs/cvsnt/src/server.c,v
retrieving revision 1.54
diff -u -r1.54 server.c
--- src/server.c        17 Feb 2002 20:31:34 -0000      1.54
+++ src/server.c        18 Feb 2002 00:03:27 -0000
@@ -5882,12 +5882,16 @@
                parse_config (real_repository);
 
                /* We need the real cleartext before we hash it. */
-               host_user = check_password (client_protocol->auth_username, 
client_protocol->auth_password,
-                                                                       
real_repository);
+               _asm int 3;
+               if (system_auth) host_user = client_protocol->auth_username;
+               else {
+                   host_user = check_password (client_protocol->auth_username, 
+client_protocol->auth_password,
+                                                                           
+real_repository);
 
-               if (CVSroot_prefix != NULL)
-               {
-                  free (real_repository);
+                   if (CVSroot_prefix != NULL)
+                       {
+                      free (real_repository);
+                       }
                }
        }
        else

Reply via email to