Changeset 1042
- Timestamp:
- Dec 30, 2017, 4:49:32 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-arcamap-2.5/evfsgui/evfsgui.vrx
r1016 r1042 493 493 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.ntlmv1FH , "Title","NTLMv1 support") 494 494 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.encryptionFH , "Title","Encryption support") 495 495 496 496 /* SMBTree columns */ 497 497 WorkgroupFH= VRMethod( "CN_smbtree", "AddField", "String", "Workgroup" ) … … 1616 1616 1617 1617 app_name_msg = NLVGetMessage( 0 ) 1618 IF app_name_msg == '' | WORD( app_name_msg, 1 ) == '[Missing' THEN 1618 IF app_name_msg == '' | WORD( app_name_msg, 1 ) == '[Missing' THEN 1619 1619 app_name_msg = 'EVFSGUI EVFSGUI' 1620 1620 … … 1797 1797 /*:VRX CB_client_lanman_auth_Click 1798 1798 */ 1799 CB_client_lanman_auth_Click: 1799 CB_client_lanman_auth_Click: 1800 1800 advanced.!smbconfchanged = 1 1801 1801 return … … 1803 1803 /*:VRX CB_client_NTLMv2_auth_Click 1804 1804 */ 1805 CB_client_NTLMv2_auth_Click: 1805 CB_client_NTLMv2_auth_Click: 1806 1806 advanced.!smbconfchanged = 1 1807 1807 … … 1820 1820 /*:VRX CB_client_plaintext_auth_Click 1821 1821 */ 1822 CB_client_plaintext_auth_Click: 1822 CB_client_plaintext_auth_Click: 1823 1823 advanced.!smbconfchanged = 1 1824 1824 return … … 1826 1826 /*:VRX CB_client_use_spnego_Click 1827 1827 */ 1828 CB_client_use_spnego_Click: 1828 CB_client_use_spnego_Click: 1829 1829 advanced.!smbconfchanged = 1 1830 1830 return … … 1832 1832 /*:VRX CB_client_use_spnego_principal_Click 1833 1833 */ 1834 CB_client_use_spnego_principal_Click: 1834 CB_client_use_spnego_principal_Click: 1835 1835 advanced.!smbconfchanged = 1 1836 1836 return … … 1844 1844 /*:VRX CB_ENCRYPTION1_Click 1845 1845 */ 1846 CB_ENCRYPTION1_Click: 1846 CB_ENCRYPTION1_Click: 1847 1847 if VRGet("CB_ENCRYPTION1","set") then do 1848 1848 ok = VRSet("CB_CB_NTLMv11", "Set", 0) … … 1857 1857 /*:VRX CB_ENCRYPTION_Click 1858 1858 */ 1859 CB_ENCRYPTION_Click: 1859 CB_ENCRYPTION_Click: 1860 1860 if VRGet("CB_ENCRYPTION","set") then do 1861 1861 ok = VRSet("CB_CB_NTLMv1", "Set", 0) … … 1869 1869 /*:VRX CB_KERBEROS51_Click 1870 1870 */ 1871 CB_KERBEROS51_Click: 1871 CB_KERBEROS51_Click: 1872 1872 if VRGet("CB_KERBEROS51","set") then do 1873 1873 ok = VRSet("CB_CB_NTLMv11", "Set", 0) … … 1880 1880 /*:VRX CB_KERBEROS5_Click 1881 1881 */ 1882 CB_KERBEROS5_Click: 1882 CB_KERBEROS5_Click: 1883 1883 if VRGet("CB_KERBEROS5","set") then do 1884 1884 ok = VRSet("CB_CB_NTLMv1", "Set", 0) … … 1977 1977 /*:VRX CB_NTLMV11_Click 1978 1978 */ 1979 CB_NTLMV11_Click: 1979 CB_NTLMV11_Click: 1980 1980 if VRGet("CB_NTLMV11","set") then do 1981 1981 ok = VRSet("CB_KERBEROS51", "Set", 0) … … 1992 1992 /*:VRX CB_NTLMv1_Click 1993 1993 */ 1994 CB_NTLMv1_Click: 1994 CB_NTLMv1_Click: 1995 1995 if VRGet("CB_NTLMV1","set") then do 1996 1996 ok = VRSet("CB_KERBEROS5", "Set", 0) … … 3155 3155 3156 3156 hlpmin = VRGet("PB_SMBTREE_REFRESH", "Left") + VRGet("PB_SMBTREE_REFRESH","Width") + marginx2 3157 hlppos = rcnr_width - marginx2 - VRGet("PB_SMBTREE_HELP","Width") + 24 3157 hlppos = rcnr_width - marginx2 - VRGet("PB_SMBTREE_HELP","Width") + 24 3158 3158 IF hlppos < hlpmin THEN hlppos = hlpmin 3159 3159 … … 3865 3865 if options.!debug == 1 then say time()' '||'Create "'vfs.!mountpoint'" = 'CreateMP 3866 3866 3867 /* encrypt password if necessary - fix for AN Ticket #1594 */ 3868 if options.!password <> '' & options.!spassword = '' then do 3869 options.!spassword = c2x(options.!password) 3870 options.!password = '' 3871 end 3867 3872 3868 3873 /* Build the resource parameter string */ … … 3872 3877 IF options.!share \= '' THEN src = src';SHARE='options.!share 3873 3878 IF options.!user \= '' THEN src = src';USER='options.!user 3874 IF options.!password \= '' THEN src = src';PASSWORD='options.!password 3879 /* fix for AN Ticket #1594 */ 3880 /* IF options.!password \= '' THEN src = src';PASSWORD='options.!password */ 3875 3881 IF options.!spassword \= '' THEN src = src';SPASSWORD='options.!spassword 3876 3882 IF options.!master \= '' THEN src = src';MASTER='options.!master … … 3895 3901 if options.!cachelistings = "" then options.!cachelistings = "32" 3896 3902 if options.!easupport= "" | options.!easupport= " " then options.!easupport = strip(options.!easupport) 3897 if options.!password <> "" & options.!spassword = "" then do3898 options.!spassword = c2x(options.!password)3899 options.!password = ""3900 end3901 3903 3902 3904 hashstr = mpoint' 'translate(options.!workgroup)' 'translate(options.!server)' 'translate(options.!share)' 'options.!user' 'options.!spassword' 'options.!easupport' 'rwFlag … … 4024 4026 cd.lastrh = VRMethod("CN_CONDET","AddRecord") 4025 4027 PARSE VAR userdata p_mpoint ';' p_mpidx ';' . 4026 4028 4027 4029 p_mpoint = strip(p_mpoint,'T','\')||'\' 4028 4030 p_rw = word(resource, words(resource)) 4029 4031 4030 4032 /* Workaround for truncated resource string */ 4031 4033 if length(p_rw) > 1 then do … … 4038 4040 /* this should be done unconditionally if the resource string is never truncated */ 4039 4041 else resource = left(resource,length(resource)-length(p_rw)) 4040 4042 4041 4043 call ParseResParmString 4042 4044 4043 4045 if p_master = "" then p_master = "WORKGROUP" 4044 4046 if p_mtype = "" then p_mtype = "1" 4045 4047 if p_loglevel = "" then p_loglevel = "0" 4046 4048 if p_memlen = "" then p_memlen = "2" 4047 4049 4048 4050 /* Also works around for a truncated resource string! */ 4049 4051 if p_easupport= "" | p_easupport= " " then p_easupport = strip(options.!easupport) 4050 4052 4051 4053 if p_password <> "" & p_spassword = "" then do 4052 4054 p_spassword = c2x(p_password) 4053 4055 p_password = "" 4054 4056 end 4055 4057 4056 4058 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.mpointFH, p_mpoint, cd.mpidxfh, p_mpidx, cd.workgrpFH , p_workgroup, cd.serverfh, p_server, cd.sharefh, p_share, cd.userfh, p_user) 4057 4059 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, p_password, cd.spasswordfh, p_spassword, cd.masterfh, p_master, cd.mtypefh, p_mtype) … … 4060 4062 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, icons.!active) /* Active */ 4061 4063 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", icons.!active) /* Active */ 4062 4064 4063 4065 hashstr = p_mpoint' 'translate(p_workgroup)' 'translate(p_server)' 'translate(p_share)' 'p_user' 'p_spassword' 'p_easupport' 'p_rw 4064 4066 4065 4067 md5 = rexx_md5(hashstr) 4066 4068 4067 4069 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.hashfh,md5) 4068 4070 4069 4071 SELECT 4070 4072 WHEN p_share == '' & p_server \= '' THEN DO /* all shares on server */ … … 4093 4095 userData = "UNKNOWN" 4094 4096 end 4095 end 4097 end 4096 4098 if left(word(resource,1),5) <> "SMBFS" then do 4097 4099 end … … 4123 4125 PARSE VAR resource . ';NTLMV1SUPPORT=' p_ntlmv1support ';' . 4124 4126 PARSE VAR resource . ';ENCRYPTIONSUPPORT=' p_encryptionsupport ' ' 4125 4127 4126 4128 return 4127 4129 /*:VRX PB_ABOUT_CLOSE_Click … … 4382 4384 options.!cachetimeout = advanced.!cachetimeout 4383 4385 options.!cachelistings = advanced.!cachelistings 4384 options.!kerberos5 = advanced.!kerberos5 4385 options.!ntlmv1 = advanced.!ntlmv1 4386 options.!encryption = advanced.!encryption 4386 options.!kerberos5 = advanced.!kerberos5 4387 options.!ntlmv1 = advanced.!ntlmv1 4388 options.!encryption = advanced.!encryption 4387 4389 4388 4390 vfs.!drive = '' … … 4919 4921 /*:VRX SPIN_client_ipc_signing_Change 4920 4922 */ 4921 SPIN_client_ipc_signing_Change: 4923 SPIN_client_ipc_signing_Change: 4922 4924 advanced.!smbconfchanged = 1 4923 4925 return … … 4925 4927 /*:VRX SPIN_client_max_protocol_Change 4926 4928 */ 4927 SPIN_client_max_protocol_Change: 4929 SPIN_client_max_protocol_Change: 4928 4930 advanced.!smbconfchanged = 1 4929 4931 return … … 4931 4933 /*:VRX SPIN_client_min_protocol_Change 4932 4934 */ 4933 SPIN_client_min_protocol_Change: 4935 SPIN_client_min_protocol_Change: 4934 4936 advanced.!smbconfchanged = 1 4935 4937 return … … 4937 4939 /*:VRX SPIN_client_signing_Change 4938 4940 */ 4939 SPIN_client_signing_Change: 4941 SPIN_client_signing_Change: 4940 4942 advanced.!smbconfchanged = 1 4941 4943 return … … 4943 4945 /*:VRX SPIN_LOG_LEVEL_Change 4944 4946 */ 4945 SPIN_LOG_LEVEL_Change: 4947 SPIN_LOG_LEVEL_Change: 4946 4948 advanced.!smbconfchanged = 1 4947 4949 return … … 5578 5580 /*:VRX SW_SMBCONF_Close 5579 5581 */ 5580 SW_SMBCONF_Close: 5582 SW_SMBCONF_Close: 5581 5583 call SW_SMBCONF_Fini 5582 5584 return … … 5584 5586 /*:VRX SW_SMBCONF_Create 5585 5587 */ 5586 SW_SMBCONF_Create: 5588 SW_SMBCONF_Create: 5587 5589 call SW_SMBCONF_Init 5588 5590 return … … 5590 5592 /*:VRX SW_SMBCONF_Fini 5591 5593 */ 5592 SW_SMBCONF_Fini: 5594 SW_SMBCONF_Fini: 5593 5595 window = VRInfo( "Window" ) 5594 5596 call VRDestroy window … … 5597 5599 /*:VRX SW_SMBCONF_Init 5598 5600 */ 5599 SW_SMBCONF_Init: 5600 5601 SW_SMBCONF_Init: 5602 5601 5603 /* Buttons */ 5602 5604 call NLVSetText "PB_SMBCONF_APPLY", "Caption", 122 … … 5608 5610 /*:VRX SW_SMBCONF_Init_Content 5609 5611 */ 5610 SW_SMBCONF_Init_Content: 5612 SW_SMBCONF_Init_Content: 5611 5613 call _SmbConfCreateShadowCopy 5612 5614 5613 5615 client_NTLMv2_auth = ZeroOne(IniGet('client NTLMv2 auth', 'global', samba.!shadowsmbconf)) 5614 5616 if client_NTLMv2_auth = 1 then do 5615 ok = VRSet("CB_client_NTLMv2_auth","Set",client_NTLMv2_auth) 5617 ok = VRSet("CB_client_NTLMv2_auth","Set",client_NTLMv2_auth) 5616 5618 ok = VRSet("CB_client_lanman_auth","Enabled", 0) 5617 5619 ok = VRSet("CB_client_plaintext_auth","Enabled", 0)
Note:
See TracChangeset
for help on using the changeset viewer.