Changeset 1006 for branches/client-3.0/src
- Timestamp:
- Jan 15, 2017, 9:08:12 AM (9 years ago)
- Location:
- branches/client-3.0/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-3.0/src/ndpsmb.c
r1002 r1006 112 112 {ND_PROP_ULONG, 0, "KRB5SUPPORT", "0"}, 113 113 {ND_PROP_ULONG, 0, "NTLMv1SUPPORT", "0"}, 114 {ND_PROP_ULONG, 0, "ENCRYPTIONSUPPORT", "0"}, 114 115 {ND_PROP_STRING, 0, NULL, NULL} 115 116 }; … … 368 369 pRes->krb5support = 0; 369 370 pRes->ntlmv1support = 0; 371 pRes->encryptionsupport = 0; 370 372 pRes->pdc = NULL; 371 373 … … 498 500 } 499 501 } 500 502 t = 0; 503 rc = ph->fsphQueryUlongProperty (properties, "ENCRYPTIONSUPPORT", &t); 504 if (!rc) 505 { 506 if (t > 1) 507 { 508 rc = ERROR_INVALID_PARAMETER; 509 } 510 else 511 { 512 pRes->encryptionsupport = t; 513 } 514 } 501 515 t = 0; 502 516 rc = ph->fsphQueryUlongProperty (properties, "CTO", &t); -
branches/client-3.0/src/rc/rc.dlg
r931 r1006 30 30 WS_VISIBLE 31 31 ENTRYFIELD "", ENT_MASTER, 147, 60, 90, 8, ES_MARGIN 32 LTEXT "Supports EA", LBL_EASUPPORT, 19 5, 130, 52, 10,32 LTEXT "Supports EA", LBL_EASUPPORT, 190, 130, 52, 10, 33 33 DT_WORDBREAK 34 34 AUTOCHECKBOX "", CHK_EASUPPORT, 180, 132, 10, 10, WS_GROUP 35 LTEXT "Supports KRB5", LBL_KRB5SUPPORT, 19 5, 140, 52, 10,35 LTEXT "Supports KRB5", LBL_KRB5SUPPORT, 190, 140, 52, 10, 36 36 DT_WORDBREAK 37 37 AUTOCHECKBOX "", CHK_KRB5SUPPORT, 180, 142, 10, 10, WS_GROUP 38 LTEXT "Support NTLMv1", LBL_NTLMv1SUPPORT, 19 5, 150, 52, 10,38 LTEXT "Support NTLMv1", LBL_NTLMv1SUPPORT, 190, 150, 52, 10, 39 39 DT_WORDBREAK 40 40 AUTOCHECKBOX "", CHK_NTLMv1SUPPORT, 180, 152, 10, 10, WS_GROUP 41 LTEXT "Support Encryption", LBL_ENCRYPTIONSUPPORT, 190, 160, 58, 10, 42 DT_WORDBREAK 43 AUTOCHECKBOX "", CHK_ENCRYPTIONSUPPORT, 180, 162, 10, 10, WS_GROUP 41 44 PUSHBUTTON "Cancel", DID_CANCEL, 7, 6, 56, 14 42 45 PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold" -
branches/client-3.0/src/rc/rc.h
r931 r1006 27 27 #define LBL_NTLMv1SUPPORT 1030 28 28 #define CHK_NTLMv1SUPPORT 1031 29 #define LBL_ENCRYPTIONSUPPORT 1032 30 #define CHK_ENCRYPTIONSUPPORT 1033 29 31 #define LBL_CACHETIMEOUT 1014 30 32 #define SPIN_CACHETIMEOUT 1015 -
branches/client-3.0/src/rc/rc.rc_
r935 r1006 47 47 " master - name of master server or master workgroup\r\n" 48 48 " mastertype - 0 if 'master' is the name of master server, 1 if 'master' is the name of master workgroup\r\n" 49 " encryption - 0 to not support encryption (default), 1 to support\r\n" 50 " NTLMv1 auth support - 0 to not support NTLMv1 authentication (default), 1 to support\r\n" 51 " krb5support - 0 to not support kerberos authentication, 1 to support\r\n" 49 52 " easupport - 0 to not support EA, 1 to support\r\n" 50 " 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"52 53 "\r\n" 53 54 } … … 136 137 RCDATA (DLG_ID + 13) 137 138 { 139 CHK_ENCRYPTIONSUPPORT, PARMTYPE_INT, 0L, 1L, "encryptionsupport", "%d", 0L 140 } 141 142 RCDATA (DLG_ID + 14) 143 { 138 144 1 139 145 } -
branches/client-3.0/src/smbwrp.c
r1003 r1006 247 247 int name_type= 0x20; 248 248 int flags = 0; 249 int signing_state = SMB_SIGNING_DEFAULT; 249 250 enum protocol_types protocol; 250 251 const char *name = NULL; … … 263 264 } 264 265 266 if (pRes->encryptionsupport) { 267 signing_state = SMB_SIGNING_REQUIRED; 268 } 269 265 270 status = cli_connect_nb( 266 271 server, NULL, port, name_type, NULL, 267 SMB_SIGNING_DEFAULT, flags, &c);272 signing_state, flags, &c); 268 273 269 274 if (!NT_STATUS_IS_OK(status)) { … … 417 422 cli_shutdown(c); 418 423 return status; 424 } 425 426 if (pRes->encryptionsupport) { 427 debuglocal(4,"Attempting to force encryption\n"); 428 status = cli_cm_force_encryption(c, 429 srv->username, 430 srv->password, 431 workgroup, 432 share); 433 if (!NT_STATUS_IS_OK(status)) { 434 debuglocal(4,"cli_cm_force_encryption failed: %s\n", nt_errstr(status)); 435 cli_shutdown(c); 436 return status; 437 } 438 debuglocal(4,"Forcing encryption succeeded!\n"); 419 439 } 420 440 -
branches/client-3.0/src/smbwrp.h
r933 r1006 141 141 int krb5support; 142 142 int ntlmv1support; 143 int encryptionsupport; 143 144 int cachetimeout; 144 145 int cachedepth;
Note:
See TracChangeset
for help on using the changeset viewer.