Ignore:
Timestamp:
Nov 19, 2011, 5:05:03 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI 2.5.x: Continue implementing server based logon script support

File:
1 edited

Legend:

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

    r662 r665  
    10961096*/
    10971097_LoadOtherFuncs:
     1098    SIGNAL ON SYNTAX NAME DLLMissing
     1099
    10981100    call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
    10991101    call SysLoadFuncs
     
    11051107    call PRLoadFuncs
    11061108
    1107     call RxFuncAdd 'RxuInit','Rxu','RxuInit'
     1109    call RxFuncAdd 'RxuInit',      'RXU',     'RxuInit'
    11081110    call RxuInit
    1109 return
     1111
     1112    SIGNAL OFF SYNTAX
     1113return
     1114
     1115DLLMissing:
     1116    Fatal = 1
     1117    call VRMessage 'Main', 'REXX function library 'strip(translate(word(sourceline(SIGL-1),4),'  ',"',"))'.DLL is missing!', "EVFSGUI fatal error", "E"
     1118signal Quit
    11101119
    11111120/*:VRX         _ParseCommandLine
     
    22152224    end
    22162225
     2226    /* do nothing if a workgroup was mounted */
     2227    if VRGet("EF_SERVER","value") = "*" then return
     2228
    22172229    machine = VRGet("EF_SERVER","value")   
    22182230    rh = _GetMachineHandle(machine)
     
    37273739    credentials.!entered = 1
    37283740
    3729     ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value"))
    3730 
    3731     LogonRetVal = word(ok,1)
    3732 
    3733     if LogonRetVal = "1" then do
    3734         Msg.Type ="I"
    3735         ok = VRSet("DT_STATUSBAR","Caption", "Welcome "rpc.queryuser.FULL_NAME"!")
    3736     end
    3737     else do
    3738         Msg.Type ="E"
    3739         CALL VRMessage 'Main', Credentials.!username" at "p_server": "rpc.queryuser.LOGONSTATUS, "Login failure", Msg.Type
     3741    if p_server <> "" then do
     3742        ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value"))
     3743
     3744        if word(ok,1) = "1" then do
     3745            ok = VRSet("DT_STATUSBAR","Caption", NLVGetMessage(107, rpc.queryuser.FULL_NAME))
     3746            say 'rpc.queryuser.DIR_DRIVE    = "'rpc.queryuser.DIR_DRIVE'"'
     3747            say 'rpc.queryuser.LOGON_SCRIPT = "'rpc.queryuser.LOGON_SCRIPT'"'
     3748        end
     3749        else do
     3750            CALL VRMessage 'Main', VRGet("EF_USER1","Value")" \\"p_server": "rpc.queryuser.LOGONSTATUS, NLVGetMessage(5), "E"
     3751        end
    37403752    end
    37413753
     
    44744486    end
    44754487
    4476     Info.!comment= VRMethod( "CN_INFO", "AddRecord")
    4477     Info.!domain = VRMethod( "CN_INFO", "AddRecord")
    4478     Info.!DMBLMB = VRMethod( "CN_INFO", "AddRecord")
    4479     Info.!os     = VRMethod( "CN_INFO", "AddRecord")
    4480     Info.!server = VRMethod( "CN_INFO", "AddRecord")
    4481     Info.!status = VRMethod( "CN_INFO", "AddRecord")
    4482     Info.!IP     = VRMethod( "CN_INFO", "AddRecord")
    4483     Info.!MAC    = VRMethod( "CN_INFO", "AddRecord")
    4484 
    4485 
    4486     ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, WorkGroupFH ))
    4487     ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os,     Info.TypeFH, strip(NLVGetMessage(93),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, OSFH  ))
    4488     ok = VRMethod( "CN_INFO", "SetFieldData", Info.!server, Info.TypeFH, strip(NLVGetMessage(19),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, VersionFH  ))
     4488    ok = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password)
     4489
     4490    Info.!nbname       = VRMethod( "CN_INFO", "AddRecord")
     4491    Info.!comment      = VRMethod( "CN_INFO", "AddRecord")
     4492    Info.!domain       = VRMethod( "CN_INFO", "AddRecord")
     4493    Info.!DMBLMB       = VRMethod( "CN_INFO", "AddRecord")
     4494    Info.!capabilities = VRMethod( "CN_INFO", "AddRecord")
     4495    Info.!os           = VRMethod( "CN_INFO", "AddRecord")
     4496    Info.!server       = VRMethod( "CN_INFO", "AddRecord")
     4497    Info.!version      = VRMethod( "CN_INFO", "AddRecord")
     4498    Info.!status       = VRMethod( "CN_INFO", "AddRecord")
     4499    Info.!IP           = VRMethod( "CN_INFO", "AddRecord")
     4500    Info.!MAC          = VRMethod( "CN_INFO", "AddRecord")
     4501
     4502    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, rpc.srvinfo.NETBIOSNAME)
     4503    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, rpc.srvinfo.SERVERSTRING)
     4504    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, WorkGroupFH ))
     4505    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os,     Info.TypeFH, strip(NLVGetMessage(93), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, OSFH  ))
     4506    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!server, Info.TypeFH, strip(NLVGetMessage(19), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, VersionFH  ))
     4507    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!version,Info.TypeFH, strip(NLVGetMessage(139),'T',':'),Info.ValueFH, rpc.srvinfo.OS_VERSION)
     4508    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!capabilities, Info.TypeFH, strip(NLVGetMessage(138),'T',':'),Info.ValueFH, rpc.srvinfo.CAPABILITIES)
    44894509    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!DMBLMB, Info.TypeFH, strip(NLVGetMessage(124),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MBFH  ))
    44904510    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!IP,     Info.TypeFH, "IP"  ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, IPFH  ))
    44914511    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!MAC,    Info.TypeFH, "MAC" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MacFH ))
    4492     ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, SMBObj.comment)
    4493     ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, SMBObj.udatamsg )
     4512
     4513    ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS ) /* SMBObj.udatamsg */
    44944514    IF options.!debug == 1 THEN SAY time()' SW_INFO_Create done'   
    44954515return
Note: See TracChangeset for help on using the changeset viewer.