Changeset 1062


Ignore:
Timestamp:
May 9, 2020, 11:26:24 PM (5 years ago)
Author:
Alex Taylor
Message:

ArcaMapper branch - enable optional warning when NT1 protocol flavour is not enabled.

Location:
branches/guitools-arcamap-2.5/evfsgui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-arcamap-2.5/evfsgui/evfsgui.vrp

    r1056 r1062  
    88EXEPath:
    99RunParameters: -NDFS
    10 RunDirectory: G:\netlabs\svn\samba\trunk\guitools\evfsgui
     10RunDirectory: G:\netlabs\svn\samba\branches\guitools-arcamap-2.5\evfsgui
    1111VRXWindow: __VREMainWindow,1,1831,2457,1012,7841
    1212VRXWindow: __VREFileListWindow,1,711,14020,2665,3358
    1313VRXWindow: __VRESectionListWindow,1,1421,15659,12238,6914
    14 VRXWindow: __VREToolsWindow,1,2951,12479,5474,1665
     14VRXWindow: __VREToolsWindow,1,2951,12479,5468,1665
    1515VRXWindow: __VREWindListWindow,1,566,10262,4963,3150
    1616UserFile: 1
     
    1818UserWindow: SW_ADVANCED,1
    1919UserWindow: SW_PROGRESS,1
    20 UserWindow: SW_MOUNTPOINT,1
    21 UserWindow: SW_INFO,1
     20UserWindow: SW_SMBCONF,1
  • branches/guitools-arcamap-2.5/evfsgui/evfsgui.vrx

    r1056 r1062  
    435435return
    436436
     437/*:VRX         _CheckClientMinProtocol
     438*/
     439_CheckClientMinProtocol: PROCEDURE EXPOSE samba. settings. options.
     440
     441    tmpq = RXQueue('CREATE')
     442    orgq = RXQUEUE('SET', tmpq )
     443    say samba.!testparmexe '--parameter-name="client min protocol" -s' samba.!smbconf '2>nul |rxqueue' tmpq
     444    address cmd samba.!testparmexe '--parameter-name="client min protocol" -s' samba.!smbconf '2>nul |rxqueue' tmpq
     445    min_proto = 'default'
     446    DO QUEUED()
     447        PARSE PULL line
     448        min_proto = line
     449    END
     450    CALL RXQueue 'SET', orgq
     451    CALL RXQueue 'DELETE', tmpq
     452    say '->' min_proto
     453
     454    ok = 0
     455    IF WORDPOS( min_proto, 'CORE COREPLUS LANMAN1 LANMAN2 NT1') == 0 THEN DO
     456        stem.1 = NLVGetMessage( 150 )
     457        stem.2 = ''
     458        stem.3 = NLVGetMessage( 151 )
     459        stem.4 = ''
     460        stem.5 = NLVGetMessage( 152 )
     461        stem.6 = ''
     462        stem.7 = NLVGetMessage( 153 )
     463        stem.0 = 7
     464        btn.1 = NLVGetMessage( 6 )
     465        btn.2 = NLVGetMessage( 7 )
     466        btn.3 = NLVGetMessage( 154 )
     467        btn.0 = 3
     468        ok = VRMessageStem( VRWindow(), 'stem.', NLVGetMessage( 155 ), 'Q', 'btn.', 1, 3 )
     469        IF ok == 1 THEN DO
     470            handle = IniOpen('global', samba.!smbconf)
     471            CALL IniSet 'client min protocol', 'NT1', handle
     472            CALL IniSave handle
     473            CALL IniClose handle
     474        END
     475    END
     476
     477return ok
     478
    437479/*:VRX         _ContainersInit
    438480*/
     
    904946    say _ucChkObj()
    905947
     948    /* This setting is in OS2.INI so we can clear it immediately without
     949     * interfering with the usual INI read/write flow.
     950     */
     951    IF VRGetIni('SmbConfFlags', 'CheckMinProto', 'User') <> '' THEN DO
     952        ok = _CheckClientMinProtocol()
     953        IF ok < 3 THEN
     954            CALL VRDelIni 'SmbConfFlags', 'CheckMinProto', 'User'
     955    END
     956
    906957    IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO
    907958        /* First start */
     
    935986    ELSE DO
    936987        /* Subsequent start */
     988
    937989        /* Load window position settings */
    938990        settings.!x = VRGetIni('Settings', 'X', settings.!ini, 'NoClose')
     
    17191771    w = VRLoad( "TDL_1", VRWindowPath(), "SW_SETTINGS" )
    17201772    ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(47)" ")
     1773    ok = VRMethod( "TDL_1", "SetStatusText", 5, NLVGetMessage(132,"1","2"))
    17211774    w = VRLoad( "TDL_1", VRWindowPath(), "SW_SMBCONF" )
    17221775    ok = VRMethod( "TDL_1", "InsertPage", w,"- "NLVGetMessage(47)" ")
     1776    ok = VRMethod( "TDL_1", "SetStatusText", 6, NLVGetMessage(132,"2","2"))
    17231777    if options.!debug == 1 then say time()' _TabbedDialogSetup done'
    17241778return
     
    50145068    CALL VRSet 'CB_TRAC', 'Set', options.!tracmark
    50155069
    5016     ok = VRSet("DT_About","Caption", Program' (c) 2007-2018 Alexander Taylor for Arca Noae '||'0D0A'x||'and Herwig Bauernfeind for bww bitwise works GmbH.')
     5070    ok = VRSet("DT_About","Caption", Program' (c) 2007-2020 Alexander Taylor for Arca Noae '||'0D0A'x||'and Herwig Bauernfeind for bww bitwise works GmbH.')
    50175071
    50185072    About.DscFH  = VRMethod( "CN_ABOUT", "AddField", "String", "Component" )
     
    52055259        say '  Icon:     "'SMBObj.icon'"'
    52065260    end
    5207 say "Vorher:"rpc.srvinfo.OS_VERSION
     5261/* say "Vorher:"rpc.srvinfo.OS_VERSION */
    52085262    drop rpc.
    5209 say "Vorher:"rpc.srvinfo.OS_VERSION
     5263/* say "Vorher:"rpc.srvinfo.OS_VERSION */
    52105264    rpc_success = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password)
    52115265
     
    55325586/*  call VRSet "SW_ADVANCED", "HelpTag", NLVGetMessage(40) */
    55335587
     5588    CALL SW_SETTINGS_Init_Content
     5589
    55345590/*  call VRMethod "SW_SETTINGS", "CenterWindow" */
    55355591    ok = VRSet("SW_SETTINGS", "Visible", 1)
     
    56165672    call NLVSetText "PB_SMBCONF_HELP",   "Caption", 4
    56175673
     5674    CALL SW_SMBCONF_Init_Content
    56185675return
    56195676
     
    56225679SW_SMBCONF_Init_Content:
    56235680    call _SmbConfCreateShadowCopy
    5624 
     5681say 'Populating current smb.conf settings'
    56255682    client_NTLMv2_auth          = ZeroOne(IniGet('client NTLMv2 auth', 'global', samba.!shadowsmbconf))
    56265683    if client_NTLMv2_auth = 1 then do
     
    56475704        ok = VRSet("DT_client_max_protocol","Enabled", 0) */
    56485705    end
    5649     else ok = VRSet("SPIN_client_max_protocol","Value",client_max_protocol)
     5706    else do
     5707        parse var client_max_protocol main_proto'_'sub_proto
     5708        ok = VRSet("SPIN_client_max_protocol","Value",main_proto)
     5709    end
    56505710
    56515711    client_min_protocol         = IniGet('client min protocol', 'global', samba.!shadowsmbconf)
     
    56545714        ok = VRSet("DT_client_min_protocol","Enabled", 0) */
    56555715    end
    5656     else ok = VRSet("SPIN_client_min_protocol","Value",client_min_protocol)
     5716    else do
     5717        parse var client_min_protocol main_proto'_'sub_proto
     5718        ok = VRSet("SPIN_client_min_protocol","Value",main_proto)
     5719    end
    56575720
    56585721    client_signing         = IniGet('client signing', 'global', samba.!shadowsmbconf)
  • branches/guitools-arcamap-2.5/evfsgui/rc/lang/evfsi_en.mkm

    r1049 r1062  
    156156EVG0145I: Support Kerberos5
    157157EVG0146I: Support encryption
     158EVG0147?:
     159EVG0148?:
     160EVG0149?:
     161EVG0150I: For security reasons, the latest Samba software does not enable the SMB1 protocol by default.
     162EVG0151I: This may cause some LAN devices and/or servers (especially those older than 2013) to no longer be visible.
     163EVG0152I: Do you want to enable the SMB1 protocol? This can allow more LAN devices to be usable, but is considered less secure.
     164EVG0153I: Note: You can configure this later by setting "client min protocol" to "NT1" (or lower) on the second page of Global settings.
     165EVG0154I: Ask ~Later
     166EVG0155I: Protocol Compatibility
     167
Note: See TracChangeset for help on using the changeset viewer.