Changed DEFAULT_SSPI_PACKAGE back to NTLM. default tip
authorJames Van Lommel <jamesvl@gmail.com>
Fri Jun 06 16:03:14 2008 -0700 (5 months ago)
changeset 89644d18a5686
parent 73e53b2146af0
Changed DEFAULT_SSPI_PACKAGE back to NTLM.

Turns out NEGOTIATE didn't work so well on a stock w2k3 server.
Also added a small check for a null pointer.
include/mod_auth_sspi.h
src/authentication.c
       1 --- a/include/mod_auth_sspi.h	Thu Jun 05 16:54:08 2008 -0700
       2 +++ b/include/mod_auth_sspi.h	Fri Jun 06 16:03:14 2008 -0700
       3 @@ -14,7 +14,7 @@
       4  #define SECURITY_WIN32 1
       5  #define WINNT_SECURITY_DLL "SECURITY.DLL"
       6  #define WIN9X_SECURITY_DLL "SECUR32.DLL"
       7 -#define DEFAULT_SSPI_PACKAGE "NEGOTIATE"
       8 +#define DEFAULT_SSPI_PACKAGE "NTLM"
       9  #define UUID_STRING_LEN 64
      10  
      11  #define _WIN32_WINNT 0x0400
     1.1 --- a/src/authentication.c	Thu Jun 05 16:54:08 2008 -0700
     1.2 +++ b/src/authentication.c	Fri Jun 06 16:03:14 2008 -0700
     1.3 @@ -499,7 +499,7 @@
     1.4  
     1.5     const char* contentLen = apr_table_get(ctx->r->headers_in, "Content-Length");
     1.6  
     1.7 -   if (lstrcmpi(ctx->r->method, "POST") == 0 &&
     1.8 +   if (lstrcmpi(ctx->r->method, "POST") == 0 && contentLen != NULL &&
     1.9           lstrcmpi(contentLen, "0") == 0 &&
    1.10           ctx->scr != NULL && ctx->scr->username != NULL)
    1.11         return 1;