Changeset 1039


Ignore:
Timestamp:
Dec 14, 2017, 11:01:02 AM (8 years ago)
Author:
Herwig Bauernfeind
Message:

EVFSGUI: Fix AN Ticket #1594

Location:
trunk/guitools/evfsgui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/evfsgui/evfsgui.vrp

    r1029 r1039  
    1212VRXWindow: __VREFileListWindow,1,3300,14695,2665,3358
    1313VRXWindow: __VRESectionListWindow,1,2867,14020,10889,5035
    14 VRXWindow: __VREToolsWindow,1,2867,337,6989,1667
     14VRXWindow: __VREToolsWindow,1,2867,337,6986,1661
    1515VRXWindow: __VREWindListWindow,1,458,14695,4866,3150
    1616UserFile: 1
    17 UserWindow: Main,1
    18 UserWindow: SW_LOGIN,1
  • trunk/guitools/evfsgui/evfsgui.vrx

    r1029 r1039  
    36643664    if options.!debug == 1 then say time()' '||'Create "'vfs.!mountpoint'" = 'CreateMP
    36653665
     3666    /* encrypt password if necessary - fix for AN Ticket #1594 */
     3667    if options.!password <> '' & options.!spassword = '' then do
     3668        options.!spassword = c2x(options.!password)
     3669        options.!password = ''
     3670    end
    36663671
    36673672    /* Build the resource parameter string */
     
    36713676    IF options.!share      \= '' THEN src = src';SHARE='options.!share
    36723677    IF options.!user       \= '' THEN src = src';USER='options.!user
    3673     IF options.!password   \= '' THEN src = src';PASSWORD='options.!password
     3678/* fix for AN Ticket #1594 */
     3679/*  IF options.!password   \= '' THEN src = src';PASSWORD='options.!password */
    36743680    IF options.!spassword  \= '' THEN src = src';SPASSWORD='options.!spassword
    36753681    IF options.!master     \= '' THEN src = src';MASTER='options.!master
     
    36943700    if options.!cachelistings = "" then options.!cachelistings = "32"
    36953701    if options.!easupport= "" | options.!easupport= " " then options.!easupport = strip(options.!easupport)
    3696     if options.!password <> "" & options.!spassword = "" then do
    3697         options.!spassword = c2x(options.!password)
    3698         options.!password = ""
    3699     end
    37003702
    37013703    hashstr = mpoint' 'translate(options.!workgroup)' 'translate(options.!server)' 'translate(options.!share)' 'options.!user' 'options.!spassword' 'options.!easupport' 'rwFlag
     
    46674669RETURN
    46684670
     4671/*:VRX         RB_ACLS_NUMERIC_Click
     4672*/
     4673RB_ACLS_NUMERIC_Click:
     4674    aclsnumeric = '--numeric'
     4675    ok = VRSet("DT_REV_CONT","Caption","")
     4676    ok = VRMethod("CN_ACLS","RemoveRecord","ALL")
     4677    ok = VRMethod("CN_ACLS","SetFieldAttr", ACL.userFH, "Visible", 0 )
     4678    call _ACLSBrowse
     4679return
     4680
     4681/*:VRX         RB_ACLS_TEXT_Click
     4682*/
     4683RB_ACLS_TEXT_Click:
     4684    aclsnumeric = ''
     4685    ok = VRSet("DT_REV_CONT","Caption","")
     4686    ok = VRMethod("CN_ACLS","RemoveRecord","ALL")
     4687    ok = VRMethod("CN_ACLS","SetFieldAttr", ACL.userFH, "Visible", 1 )
     4688    call _ACLSBrowse
     4689return
     4690
    46694691/*:VRX         Refresh
    46704692*/
     
    48484870SW_ACLS_Create:
    48494871    call SW_ACLS_Init
    4850 
    4851     ok = VRSet("SW_ACLS","Caption",'ACLS \\'machine'\'sharename' "'browsepath'"')
    4852 
    4853     ACL.typeFH  = VRMethod( "CN_ACLS", "AddField", "String", "Type" )
    4854     ACL.valueFH = VRMethod( "CN_ACLS", "AddField", "String", "Value" )
    4855 
    4856     /* Make sure credentials are usable */
    4857     if UserCred   = 'USERCRED'   | UserCred = '' | UserCred = '--user=%' then UserCred = '-N'
    4858 
    4859     /* We have to remove the double % for smbclient.exe - not entirely clear why */
    4860     OldUserCred = ""
    4861     if pos('%%',UserCred) > 0 & pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 0  then do
    4862         OldUserCred = UserCred
    4863         parse var UserCred '--user='username'%%'password
    4864         UserCred = '--user='username'%'password
    4865         say "  Strip double %%!!!"
    4866     end
    4867 
    4868     say '  'samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred
    4869     address cmd samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred' 'debuglevel' 2>'samba.!error' 1>'samba.!msg
    4870 
    4871     ok = file2stem(samba.!error,"aclserror.","DEL")
    4872 
    4873     if aclserror.0 = 0 then do
    4874         call _StatusBarWrapper "NT_STATUS_OK"
    4875 
    4876         ok = file2stem(samba.!msg,"aclsmsg.","DEL")     
    4877         do I = 1 to aclsmsg.0
    4878             parse var aclsmsg.I aclstype':'aclsvalue
    4879             DummyRH = VRMethod('CN_ACLS', 'AddRecord')
    4880             ok = VRMethod("CN_ACLS", "SetFieldData", DummyRH, ACL.typeFH, aclstype, ACL.valueFH, aclsvalue)
    4881         end
    4882     end
    4883     else do
    4884         call _StatusBarWrapper aclserror.1
    4885         call SW_ACLS_close
    4886     end
     4872    ACL.typeFH   = VRMethod( "CN_ACLS", "AddField", "String", "Type" )
     4873    ACL.groupFH  = VRMethod( "CN_ACLS", "AddField", "String", "Group" )
     4874    ACL.userFH   = VRMethod( "CN_ACLS", "AddField", "String", "User" )
     4875    ACL.ADFH     = VRMethod( "CN_ACLS", "AddField", "String", "A/D" )
     4876    ACL.flagsFH  = VRMethod( "CN_ACLS", "AddField", "String", "Flags" )
     4877    ACL.accessFH = VRMethod( "CN_ACLS", "AddField", "String", "Access" )
     4878    ok = VRMethod( "CN_ACLS", "RemoveRecord", "ALL")
     4879    aclsnumeric = ''
     4880    call _ACLSBrowse
    48874881return
    48884882
Note: See TracChangeset for help on using the changeset viewer.