Changeset 920 for trunk/server/source3/param/loadparm.c
- Timestamp:
- Jun 9, 2016, 2:23:12 PM (9 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 919
- Property svn:mergeinfo changed
-
trunk/server/source3/param/loadparm.c
r918 r920 65 65 #include "dbwrap.h" 66 66 #include "smbldap.h" 67 #include "../lib/util/bitmap.h" 67 68 68 69 #ifdef HAVE_SYS_SYSCTL_H … … 219 220 bool bWinbindRefreshTickets; 220 221 bool bWinbindOfflineLogon; 222 bool bWinbindSealedPipes; 221 223 bool bWinbindNormalizeNames; 222 224 bool bWinbindRpcOnly; … … 340 342 bool bLanmanAuth; 341 343 bool bNTLMAuth; 344 bool bRawNTLMv2Auth; 342 345 bool bUseSpnego; 343 346 bool bClientLanManAuth; … … 357 360 bool bHostnameLookups; 358 361 bool bUnixExtensions; 362 bool bAllowDcerpcAuthLevelConnect; 359 363 bool bDisableNetbios; 360 364 char * szDedicatedKeytabFile; … … 369 373 int name_cache_timeout; 370 374 int client_signing; 375 int client_ipc_signing; 371 376 int server_signing; 372 377 int client_ldap_sasl_wrapping; … … 1387 1392 }, 1388 1393 { 1394 .label = "raw NTLMv2 auth", 1395 .type = P_BOOL, 1396 .p_class = P_GLOBAL, 1397 .ptr = &Globals.bRawNTLMv2Auth, 1398 .special = NULL, 1399 .enum_list = NULL, 1400 .flags = FLAG_ADVANCED, 1401 }, 1402 { 1389 1403 .label = "client NTLMv2 auth", 1390 1404 .type = P_BOOL, … … 2295 2309 }, 2296 2310 { 2311 .label = "allow dcerpc auth level connect", 2312 .type = P_BOOL, 2313 .p_class = P_GLOBAL, 2314 .ptr = &Globals.bAllowDcerpcAuthLevelConnect, 2315 .special = NULL, 2316 .enum_list = NULL, 2317 .flags = FLAG_ADVANCED, 2318 }, 2319 { 2297 2320 .label = "use spnego", 2298 2321 .type = P_BOOL, … … 2308 2331 .p_class = P_GLOBAL, 2309 2332 .ptr = &Globals.client_signing, 2333 .special = NULL, 2334 .enum_list = enum_smb_signing_vals, 2335 .flags = FLAG_ADVANCED, 2336 }, 2337 { 2338 .label = "client ipc signing", 2339 .type = P_ENUM, 2340 .p_class = P_GLOBAL, 2341 .ptr = &Globals.client_ipc_signing, 2310 2342 .special = NULL, 2311 2343 .enum_list = enum_smb_signing_vals, … … 4754 4786 .p_class = P_GLOBAL, 4755 4787 .ptr = &Globals.bWinbindOfflineLogon, 4788 .special = NULL, 4789 .enum_list = NULL, 4790 .flags = FLAG_ADVANCED, 4791 }, 4792 { 4793 .label = "winbind sealed pipes", 4794 .type = P_BOOL, 4795 .p_class = P_GLOBAL, 4796 .ptr = &Globals.bWinbindSealedPipes, 4756 4797 .special = NULL, 4757 4798 .enum_list = NULL, … … 5381 5422 Globals.bLanmanAuth = False; /* Do NOT use the LanMan hash, even if it is supplied */ 5382 5423 Globals.bNTLMAuth = True; /* Do use NTLMv1 if it is supplied by the client (otherwise NTLMv2) */ 5424 Globals.bRawNTLMv2Auth = false; /* Allow NTLMv2 without NTLMSSP */ 5383 5425 Globals.bClientNTLMv2Auth = True; /* Client should always use use NTLMv2, as we can't tell that the server supports it, but most modern servers do */ 5384 5426 /* Note, that we will also use NTLM2 session security (which is different), if it is available */ 5427 5428 Globals.bAllowDcerpcAuthLevelConnect = false; /* we don't allow this by default */ 5385 5429 5386 5430 Globals.map_to_guest = 0; /* By Default, "Never" */ … … 5425 5469 Globals.ldap_debug_threshold = 10; 5426 5470 5471 Globals.client_ldap_sasl_wrapping = ADS_AUTH_SASL_SIGN; 5472 5427 5473 /* This is what we tell the afs client. in reality we set the token 5428 5474 * to never expire, though, when this runs out the afs client will … … 5489 5535 Globals.bWinbindRefreshTickets = False; 5490 5536 Globals.bWinbindOfflineLogon = False; 5537 Globals.bWinbindSealedPipes = True; 5491 5538 5492 5539 Globals.iIdmapCacheTime = 86400 * 7; /* a week by default */ … … 5501 5548 5502 5549 Globals.client_signing = Auto; 5550 Globals.client_ipc_signing = Required; 5503 5551 Globals.server_signing = False; 5504 5552 … … 5754 5802 FN_GLOBAL_STRING(lp_check_password_script, &Globals.szCheckPasswordScript) 5755 5803 5804 FN_GLOBAL_BOOL(lp_allow_dcerpc_auth_level_connect, &Globals.bAllowDcerpcAuthLevelConnect) 5756 5805 FN_GLOBAL_STRING(lp_wins_hook, &Globals.szWINSHook) 5757 5806 FN_GLOBAL_CONST_STRING(lp_template_homedir, &Globals.szTemplateHomedir) … … 5767 5816 FN_GLOBAL_BOOL(lp_winbind_refresh_tickets, &Globals.bWinbindRefreshTickets) 5768 5817 FN_GLOBAL_BOOL(lp_winbind_offline_logon, &Globals.bWinbindOfflineLogon) 5818 FN_GLOBAL_BOOL(lp_winbind_sealed_pipes, &Globals.bWinbindSealedPipes) 5769 5819 FN_GLOBAL_BOOL(lp_winbind_normalize_names, &Globals.bWinbindNormalizeNames) 5770 5820 FN_GLOBAL_BOOL(lp_winbind_rpc_only, &Globals.bWinbindRpcOnly) … … 5863 5913 FN_GLOBAL_BOOL(lp_lanman_auth, &Globals.bLanmanAuth) 5864 5914 FN_GLOBAL_BOOL(lp_ntlm_auth, &Globals.bNTLMAuth) 5915 FN_GLOBAL_BOOL(lp_raw_ntlmv2_auth, &Globals.bRawNTLMv2Auth) 5865 5916 FN_GLOBAL_BOOL(lp_client_plaintext_auth, &Globals.bClientPlaintextAuth) 5866 5917 FN_GLOBAL_BOOL(lp_client_lanman_auth, &Globals.bClientLanManAuth) … … 6101 6152 FN_GLOBAL_INTEGER(lp_name_cache_timeout, &Globals.name_cache_timeout) 6102 6153 FN_GLOBAL_INTEGER(lp_client_signing, &Globals.client_signing) 6154 FN_GLOBAL_INTEGER(lp_client_ipc_signing, &Globals.client_ipc_signing) 6103 6155 FN_GLOBAL_INTEGER(lp_server_signing, &Globals.server_signing) 6104 6156 FN_GLOBAL_INTEGER(lp_client_ldap_sasl_wrapping, &Globals.client_ldap_sasl_wrapping) … … 9753 9805 } 9754 9806 #endif 9807 9808 if (!lp_is_in_client()) { 9809 switch (lp_client_ipc_signing()) { 9810 case Required: 9811 lp_set_cmdline("client signing", "mandatory"); 9812 break; 9813 case Auto: 9814 lp_set_cmdline("client signing", "auto"); 9815 break; 9816 case False: 9817 lp_set_cmdline("client signing", "disabled"); 9818 break; 9819 } 9820 } 9821 9755 9822 init_iconv(); 9756 9823
Note:
See TracChangeset
for help on using the changeset viewer.