Ignore:
Timestamp:
Jul 26, 2016, 11:29:20 AM (9 years ago)
Author:
Paul Smedley
Message:

Add support to enable NTLMv1 authentication

Location:
branches/client-3.0/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/client-3.0/src/ndpsmb.c

    r930 r931  
    111111        {ND_PROP_ULONG, 0, "EASUPPORT", "1"},
    112112        {ND_PROP_ULONG, 0, "KRB5SUPPORT", "0"},
     113        {ND_PROP_ULONG, 0, "NTLMv1SUPPORT", "0"},
    113114        {ND_PROP_STRING, 0, NULL, NULL}
    114115};
     
    366367        pRes->easupport = 1;
    367368        pRes->krb5support = 0;
     369        pRes->ntlmv1support = 0;
    368370        pRes->pdc = NULL;
    369371
     
    483485                }
    484486        }
     487        t = 0;
     488        rc = ph->fsphQueryUlongProperty (properties, "NTLMv1SUPPORT", &t);
     489        if (!rc)
     490        {
     491                if (t > 1)
     492                {
     493                        rc = ERROR_INVALID_PARAMETER;
     494                }
     495                else
     496                {
     497                        pRes->ntlmv1support = t;
     498                }
     499        }
     500
    485501        t = 0;
    486502        rc = ph->fsphQueryUlongProperty (properties, "CTO", &t);
  • branches/client-3.0/src/rc/rc.dlg

    r930 r931  
    3636                        DT_WORDBREAK
    3737        AUTOCHECKBOX    "", CHK_KRB5SUPPORT, 180, 142, 10, 10, WS_GROUP
     38        LTEXT           "Support NTLMv1", LBL_NTLMv1SUPPORT, 195, 150, 52, 10,
     39                        DT_WORDBREAK
     40        AUTOCHECKBOX    "", CHK_NTLMv1SUPPORT, 180, 152, 10, 10, WS_GROUP
    3841        PUSHBUTTON      "Cancel", DID_CANCEL, 7, 6, 56, 14
    3942                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold"
  • branches/client-3.0/src/rc/rc.h

    r930 r931  
    2525#define LBL_KRB5SUPPORT               1028
    2626#define CHK_KRB5SUPPORT               1029
     27#define LBL_NTLMv1SUPPORT               1030
     28#define CHK_NTLMv1SUPPORT               1031
    2729#define LBL_CACHETIMEOUT        1014
    2830#define SPIN_CACHETIMEOUT       1015
  • branches/client-3.0/src/rc/rc.rc_

    r930 r931  
    4949   "    easupport - 0 to not support EA, 1 to support\r\n"
    5050   "    krb5support - 0 to not support kerberos authentication, 1 to support\r\n"
     51   "    NTLMv1 auth support - 0 to not support NTLMv1 authentication (default), 1 to support\r\n"
    5152   "\r\n"
    5253}
     
    131132
    132133RCDATA (DLG_ID + 12)
     134{
     135    CHK_NTLMv1SUPPORT, PARMTYPE_INT, 0L, 1L, "ntlmv1support", "%d", 0L
     136}
     137
     138RCDATA (DLG_ID + 13)
     139{
    133140    1
    134141}
  • branches/client-3.0/src/smbwrp.c

    r930 r931  
    254254        }
    255255
     256        if (pRes->ntlmv1support) {
     257                lp_set_cmdline("client ntlmv2 auth","no");
     258        }
     259
    256260        status = cli_connect_nb(
    257261                server, NULL, port, name_type, NULL,
  • branches/client-3.0/src/smbwrp.h

    r818 r931  
    140140        int easupport;
    141141        int krb5support;
     142        int ntlmv1support;
    142143        int cachetimeout;
    143144        int cachedepth;
Note: See TracChangeset for help on using the changeset viewer.