Changeset 675
- Timestamp:
- Jan 1, 2012, 4:47:09 PM (14 years ago)
- Location:
- trunk/guitools
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/changes
r665 r675 15 15 to work properly 16 16 17 Version 2.5.x 2011-??-?? 17 Version 2.5.x 2012-??-?? 18 + Added: -timesync switch, allows time sync using commandline 19 + Added: Support time synchronisation (requires new net.exe) 18 20 + Added: Error handler for missing REXX DLLs 19 21 + Added: Identify user using RPC library … … 39 41 convert global settings and advanced connection options 40 42 from windows into notebook pages 43 ! Fixed: Ticket #185 (create %ETC%/samba/pid and fix the EA of 44 %ETC%/samba/lock) 45 ! Fixed: Context menu in connection details view could show wrong menu items 41 46 ! Fixed: Do not add a *-"server" to the networkneighbourhood if a workgroup 42 47 was mounted. … … 48 53 ! Fixed: "Creating lame upcase tables" filtered 49 54 ! Fixed: Do not run nmblookup.exe twice in the foreground 55 ! Fixed: Errorhandler for parsing errors in RPC library (still not perfect) 50 56 - Removed: Bottom button row 51 57 - Removed: View Menu -
trunk/guitools/evfsgui/evfsgui.vrp
r665 r675 15 15 UserFile: 1 16 16 UserWindow: Main,1 17 UserWindow: SW_LOGIN,1 17 UserWindow: SW_SMBTREE,1 18 UserWindow: SW_DIALOG,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r665 r675 443 443 */ 444 444 _ContextMenuSelectedSet: 445 /* Fixme: This routine only works for CN_SMBTREE right now */ 446 445 447 /* Hide all context menu entries */ 446 448 ok = VRSet("Menu_Selected_Remove", "Visible", 0) /* CN_CONDET */ … … 449 451 ok = VRSet("Menu_Selected_Sep1", "Visible", 0) /* CN_SMBTREE */ 450 452 ok = VRSet("Menu_Selected_Info", "Visible", 0) /* CN_SMBTREE */ 453 ok = VRSet("Menu_Selected_TimeSync", "Visible", 0) /* CN_SMBTREE */ 451 454 ok = VRSet("Menu_Selected_Refresh", "Visible", 0) /* CN_SMBTREE */ 452 455 ok = VRSet("Menu_Selected_Default_Workgroup","Visible", 0) /* CN_SMBTREE */ 453 456 454 457 455 ok = VRSet("Menu_Selected_TreeView","Visible",1) 456 ok = VRSet("Menu_Selected_DetailsView","Visible",1) 458 /* ok = VRSet("Menu_Selected_TreeView","Visible",1) 459 ok = VRSet("Menu_Selected_DetailsView","Visible",1) 460 */ 457 461 select 458 462 when SMBObj.udatatype = "DISK" then do … … 463 467 ok = VRSet("Menu_Selected_Sep1", "Visible", 1) 464 468 ok = VRSet("Menu_Selected_Info", "Visible", 1) 469 ok = VRSet("Menu_Selected_TimeSync", "Visible", 1) 465 470 ok = VRSet("Menu_Selected_Refresh", "Visible", 1) 466 471 end … … 718 723 CALL NLVSetText 'Menu_Selected_Retry', "Caption", 90 719 724 CALL NLVSetText 'Menu_Selected_Info', "Caption", 92 725 CALL NLVSetText 'Menu_Selected_TimeSync', "Caption", 129 720 726 CALL NLVSetText 'Menu_Selected_Refresh', "Caption", 38 721 727 CALL NLVSetText 'Menu_Selected_Default_Workgroup',"Caption", 75 … … 1146 1152 IF options.!debug == 1 THEN SAY " -NOGUI switch detected" 1147 1153 CmdLine = delWord(CmdLine,wordpos('-NOGUI',upCmdLine),1) 1154 upCmdLine = translate(CmdLine) 1155 end 1156 1157 if wordpos('-TIMESYNC',upCmdLine) > 0 then do 1158 options.!timesync = 1 1159 IF options.!debug == 1 THEN SAY " -TIMESYNC switch detected" 1160 dwpos = wordpos('-TIMESYNC',upCmdLine) 1161 if dwpos = words(upCmdLine) then do /* TIMESYNC was last parm - assume automatic */ 1162 options.!timesrv = "" 1163 CmdLine = delWord(CmdLine,wordpos('-TIMESYNC',upCmdLine),1) 1164 end 1165 else do 1166 options.!timesrv = word(upCmdLine,dwpos+1) 1167 if left(options.!timesrv,1) = "-" then do /* other parameter detected */ 1168 options.!timesrv = "" 1169 CmdLine = delWord(CmdLine,wordpos('-TIMESYNC',upCmdLine),1) 1170 end 1171 else do /* seems we have a timeserver - IP or name - no further check */ 1172 CmdLine = delWord(CmdLine,wordpos('-TIMESYNC',upCmdLine),2) 1173 end 1174 end 1148 1175 upCmdLine = translate(CmdLine) 1149 1176 end … … 1411 1438 options.!delay = 0 1412 1439 options.!storecreds = 0 1440 options.!timesync = 0 1441 options.!timesrv = '' 1413 1442 1414 1443 IF options.!debug == 1 THEN SAY ' initializing vfs. ' … … 1487 1516 _TabbedDialogSetup: 1488 1517 IF options.!debug == 1 THEN SAY time()' _TabbedDialogSetup started' 1518 1489 1519 w = VRLoad( "TDL_1", VRWindowPath(), "SW_DIALOG" ) 1490 1520 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(13)" ") … … 1493 1523 ok = VRMethod( "TDL_1", "InsertPage", w,"- "NLVGetMessage(40)" ") 1494 1524 ok = VRMethod( "TDL_1", "SetStatusText", 2, NLVGetMessage(132,"2","2")) 1525 1495 1526 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SMBTREE" ) 1496 1527 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(39)" ") 1528 1497 1529 w = VRLoad( "TDL_1", VRWindowPath(), "SW_CONDET" ) 1498 1530 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(63)" ") … … 1517 1549 ok = VRMethod( "TDL_1", "SetTabText", 4, strip(VRMethod( "TDL_1", "GetTabText", 4))) 1518 1550 ok = VRMethod( "TDL_1", "SetTabText", 5, strip(VRMethod( "TDL_1", "GetTabText", 5))) 1551 return 1552 1553 /*:VRX _TimeSync 1554 */ 1555 _TimeSync: 1556 IF options.!debug == 1 THEN SAY time()' _TimeSync started, "'options.!timesrv'"' 1557 if options.!timesrv <> '' then do 1558 say ' 'samba.!netexe' time set -S 'options.!timesrv 1559 address cmd samba.!netexe' time set -S 'options.!timesrv 1560 end 1561 else do 1562 say ' 'samba.!netexe' time set' 1563 address cmd samba.!netexe' time set' 1564 end 1565 options.!timesync = '' 1566 IF options.!debug == 1 THEN SAY time()' _TimeSync done' 1519 1567 return 1520 1568 … … 1621 1669 if VRMethod( "CN_CONDET", "ValidateRecord", rh) <> 1 then return 1622 1670 1671 /* Hide all context menu entries */ 1672 ok = VRSet("Menu_Selected_Remove", "Visible", 0) /* CN_CONDET */ 1673 ok = VRSet("Menu_Selected_Retry", "Visible", 0) /* CN_CONDET */ 1674 ok = VRSet("Menu_Selected_Connect", "Visible", 0) /* CN_SMBTREE */ 1675 ok = VRSet("Menu_Selected_Sep1", "Visible", 0) /* CN_SMBTREE */ 1676 ok = VRSet("Menu_Selected_Info", "Visible", 0) /* CN_SMBTREE */ 1677 ok = VRSet("Menu_Selected_TimeSync", "Visible", 0) /* CN_SMBTREE */ 1678 ok = VRSet("Menu_Selected_Refresh", "Visible", 0) /* CN_SMBTREE */ 1679 ok = VRSet("Menu_Selected_Default_Workgroup","Visible", 0) /* CN_SMBTREE */ 1680 1623 1681 /* This is the place to enable specific context menu entries */ 1624 1682 ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." ) … … 2524 2582 if advanced.!savepassive == 1 then CALL _PassiveLoad 2525 2583 2584 IF options.!timesync == 1 THEN CALL _TimeSync 2585 2526 2586 IF options.!autoload == 1 THEN CALL Menu_File_Load_Click 2527 2587 … … 3271 3331 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = icons.!passive then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec) 3272 3332 end 3333 return 3334 3335 /*:VRX Menu_Selected_TimeSync_Click 3336 */ 3337 Menu_Selected_TimeSync_Click: 3338 IF options.!debug == 1 THEN SAY time()' Menu_Selected_TimeSync_Click started' 3339 3340 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 3341 if SelRH.0 = 0 then do 3342 IF options.!debug == 1 THEN SAY time()' Menu_Selected_TimeSync_Click aborted' 3343 return 3344 end 3345 3346 call _GetSMBObjectProperties SelRH.1 3347 3348 options.!timesrv = SMBObj.resname 3349 call _TimeSync 3350 3351 IF options.!debug == 1 THEN SAY time()' Menu_Selected_TimeSync_Click done' 3273 3352 return 3274 3353 … … 3402 3481 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint('"vfs.!mountpoint"')" 3403 3482 IF options.!debug == 1 THEN SAY time()' '||'Remove "'vfs.!mountpoint'" = 'ok 3483 end 3484 end 3485 else do 3486 if options.!storecreds = 1 then do 3487 ok = VRSet("EF_User", "Value",options.!user) 3488 ok = VRSet("EF_Password","Value",x2c(options.!spassword)) 3404 3489 end 3405 3490 end … … 4486 4571 end 4487 4572 4488 ok= _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password)4573 rpc_success = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password) 4489 4574 4490 4575 Info.!nbname = VRMethod( "CN_INFO", "AddRecord") … … 4492 4577 Info.!domain = VRMethod( "CN_INFO", "AddRecord") 4493 4578 Info.!DMBLMB = VRMethod( "CN_INFO", "AddRecord") 4494 Info.!capabilities = VRMethod( "CN_INFO", "AddRecord")4579 if rpc_success = 1 then Info.!capabilities = VRMethod( "CN_INFO", "AddRecord") 4495 4580 Info.!os = VRMethod( "CN_INFO", "AddRecord") 4496 4581 Info.!server = VRMethod( "CN_INFO", "AddRecord") 4497 Info.!version = VRMethod( "CN_INFO", "AddRecord")4582 if rpc_success = 1 then Info.!version = VRMethod( "CN_INFO", "AddRecord") 4498 4583 Info.!status = VRMethod( "CN_INFO", "AddRecord") 4499 4584 Info.!IP = VRMethod( "CN_INFO", "AddRecord") 4500 4585 Info.!MAC = VRMethod( "CN_INFO", "AddRecord") 4501 4586 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) 4587 if rpc_success = 1 then do 4588 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, rpc.srvinfo.NETBIOSNAME) 4589 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, rpc.srvinfo.SERVERSTRING) 4590 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!capabilities, Info.TypeFH, strip(NLVGetMessage(138),'T',':'),Info.ValueFH, rpc.srvinfo.CAPABILITIES) 4591 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!version,Info.TypeFH, strip(NLVGetMessage(139),'T',':'),Info.ValueFH, rpc.srvinfo.OS_VERSION) 4592 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS ) 4593 end 4594 else do 4595 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, SMBObj.resname) 4596 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, SMBObj.comment) 4597 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'), Info.ValueFH, SMBObj.udatamsg) 4598 end 4599 4504 4600 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, WorkGroupFH )) 4505 4601 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os, Info.TypeFH, strip(NLVGetMessage(93), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, OSFH )) 4506 4602 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)4509 4603 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!DMBLMB, Info.TypeFH, strip(NLVGetMessage(124),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MBFH )) 4510 4604 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!IP, Info.TypeFH, "IP" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, IPFH )) 4511 4605 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!MAC, Info.TypeFH, "MAC" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MacFH )) 4512 4606 4513 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS ) /* SMBObj.udatamsg */4514 4607 IF options.!debug == 1 THEN SAY time()' SW_INFO_Create done' 4515 4608 return -
trunk/guitools/evfsgui/rc/lang/evfsi_de.mkm
r665 r675 137 137 EVG0127I: LMHosts zurcksetzen 138 138 EVG0128I: Anmeldeinformationen lschen 139 EVG0129 ?:139 EVG0129I: Zeit synchronisieren 140 140 ;More advanced properties 141 141 EVG0130I: Zeitablauf Cache -
trunk/guitools/evfsgui/rc/lang/evfsi_en.mkm
r665 r675 137 137 EVG0127I: ~Reset LMHosts 138 138 EVG0128I: Rese~t stored credentials 139 EVG0129 ?:139 EVG0129I: Synchronize time 140 140 ;More advanced properties 141 141 EVG0130I: sec. cache timeout -
trunk/guitools/evfsgui/rc/lang/evfsi_fr.mkm
r665 r675 143 143 EVG0127I: Rinitialiser LMHosts 144 144 EVG0128I: A~nnuler utilisateur et mot de passe 145 EVG0129 ?:145 EVG0129I: Synchroniser l'heure 146 146 ;More advanced properties 147 147 EVG0130I: Dlai du cache -
trunk/guitools/evfsgui/rc/lang/evfsi_it.mkm
r665 r675 141 141 EVG0127I: Cancellare LMHosts 142 142 EVG0128I: ~Disfare credenziali di memorizzare 143 EVG0129 ?:143 EVG0129I: Sincrinozzare l'ora 144 144 ;More advanced properties 145 145 EVG0130I: Cache timeout -
trunk/guitools/shared/cltinit.vrs
r660 r675 61 61 if exist.0 = 1 then samba.!smbclientexe = exist.1 62 62 end 63 if samba.!smbclientexe = "" then do /* RPM/YUM/FHS tree */ 64 call charout , " Are binaries in RPM/YUM/FHS tree? " 65 ok = SysFileTree(UnixRoot'\usr\bin\smbclient.exe', exist.,'FO') 66 if exist.0 = 1 then say "Yes."; else say "No." 67 if exist.0 = 1 then samba.!smbclientexe = exist.1 68 end 63 69 if samba.!smbclientexe = "" then do /* in parent directory? */ 64 70 call charout , " Are binaries in parent directory? " … … 142 148 ok = SysMkDir(unixetc) 143 149 ok = SysMkDir(etc'\samba') 150 ok = SysMkDir(etc'\samba\pid') 144 151 ok = SysMkDir(etc'\samba\lock') 152 /* This EA makes the testparm warning about browsing go away. */ 153 /* Note: The EA is NOT marked critical as it should be, neverthelesse this fix works */ 154 ok = SysPutEA(etc||'\samba\lock',"MODE", "FEFF0400ED410000"x) 145 155 146 156 /* Messages from Samba will go here */ -
trunk/guitools/shared/rxrpclib.vrs
r665 r675 27 27 28 28 count = 0 29 SIGNAL ON SYNTAX NAME RPCERROR 29 30 do until lines(samba.!msg) = 0 30 31 rpcline = linein(samba.!msg) … … 50 51 51 52 end 53 SIGNAL OFF SYNTAX 52 54 ok = stream(samba.!msg,'c','close') 53 55 ok = SysFileDelete(samba.!msg) … … 81 83 82 84 count = 0 85 SIGNAL ON SYNTAX NAME RPCERROR 83 86 do until lines(samba.!msg) = 0 84 87 rpcline = linein(samba.!msg) … … 104 107 105 108 end 109 SIGNAL OFF SYNTAX 106 110 ok = stream(samba.!msg,'c','close') 107 111 ok = SysFileDelete(samba.!msg) … … 137 141 138 142 count = 0 143 SIGNAL ON SYNTAX NAME RPCERROR 139 144 do until lines(samba.!msg) = 0 140 145 rpcline = linein(samba.!msg) … … 155 160 end 156 161 end 162 SIGNAL OFF SYNTAX 157 163 ok = stream(samba.!msg,'c','close') 158 164 ok = SysFileDelete(samba.!msg) … … 185 191 186 192 count = 0 193 SIGNAL ON SYNTAX NAME RPCERROR 187 194 do until lines(samba.!msg) = 0 188 195 rpcline = linein(samba.!msg) … … 203 210 end 204 211 end 212 SIGNAL OFF SYNTAX 205 213 ok = stream(samba.!msg,'c','close') 206 214 ok = SysFileDelete(samba.!msg) … … 233 241 234 242 Failure = 0 235 243 SIGNAL ON SYNTAX NAME RPCERROR 236 244 do until lines(samba.!msg) = 0 237 245 rpcline = linein(samba.!msg) … … 255 263 end 256 264 end 265 SIGNAL OFF SYNTAX 257 266 ok = stream(samba.!msg,'c','close') 258 267 ok = SysFileDelete(samba.!msg) … … 286 295 287 296 count = 0 297 SIGNAL ON SYNTAX NAME RPCERROR 288 298 do until lines(samba.!msg) = 0 289 299 rpcline = linein(samba.!msg) … … 309 319 310 320 end 321 SIGNAL OFF SYNTAX 311 322 ok = stream(samba.!msg,'c','close') 312 323 ok = SysFileDelete(samba.!msg) … … 338 349 339 350 Failure = 0 340 351 SIGNAL ON SYNTAX NAME RPCERROR 341 352 do until lines(samba.!msg) = 0 342 353 rpcline = linein(samba.!msg) … … 363 374 end 364 375 end 376 SIGNAL OFF SYNTAX 365 377 ok = stream(samba.!msg,'c','close') 366 378 ok = SysFileDelete(samba.!msg) … … 387 399 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 388 400 389 say ' 'samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' >'samba.!msg390 address cmd samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' >'samba.!msg401 say ' 'samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' 2>'samba.!error' 1>'samba.!msg 402 address cmd samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' 2>'samba.!error' 1>'samba.!msg 391 403 392 404 rpc.srvinfo. = "" 393 405 394 406 Failure = 0 395 407 do while lines(samba.!error) > 0 408 rpcline = linein(samba.!error) 409 say " "samba.!error":"rpcline 410 if pos("UNSUCCESSFUL", rpcline) > 0 then do 411 ok = stream(samba.!error,'c','close') 412 ok = SysFileDelete(samba.!error) 413 Failure = 1 414 retval = 0 415 rpc.srvinfo. = "" 416 rpc.srvinfo.LOGONSTATUS=substr(rpcline,pos("NT_STATUS",rpcline),) 417 IF options.!debug == 1 THEN SAY time()" _rpcsrvinfo() aborted, "retval 418 return retval 419 end 420 end 421 422 SIGNAL ON SYNTAX NAME RPCERROR 396 423 do until lines(samba.!msg) = 0 397 424 rpcline = linein(samba.!msg) … … 414 441 rpc.srvinfo.SERVERSTRING = strip(rpc.srvinfo.SERVERSTRING) 415 442 say ' rpc.srvinfo.NETBIOSNAME = "'rpc.srvinfo.NETBIOSNAME'"' 443 say ' rpc.srvinfo.SERVERSTRING = "'rpc.srvinfo.SERVERSTRING'"' 416 444 rpc.srvinfo.CAPABILITIES = "" 417 445 do I = 1 to words(rpc.srvinfo.SERVERSTRING) 446 say "Word "I":"word(rpc.srvinfo.SERVERSTRING,I) 418 447 if length(word(rpc.srvinfo.SERVERSTRING,I)) >=4 then leave 419 448 if length(word(rpc.srvinfo.SERVERSTRING,I)) = 2 | length(word(rpc.srvinfo.SERVERSTRING,I)) = 3 then do … … 421 450 end 422 451 end 423 rpc.srvinfo.SERVERSTRING = strip(substr(rpc.srvinfo.SERVERSTRING,length(rpc.srvinfo.CAPABILITIES),)) 424 rpc.srvinfo.CAPABILITIES = strip(rpc.srvinfo.CAPABILITIES) 452 if rpc.srvinfo.CAPABILITIES <> "" then do 453 rpc.srvinfo.SERVERSTRING = strip(substr(rpc.srvinfo.SERVERSTRING,length(rpc.srvinfo.CAPABILITIES),)) 454 rpc.srvinfo.CAPABILITIES = strip(rpc.srvinfo.CAPABILITIES) 455 end 425 456 say ' rpc.srvinfo.CAPABILITIES = "'rpc.srvinfo.CAPABILITIES'"' 426 457 say ' rpc.srvinfo.SERVERSTRING = "'rpc.srvinfo.SERVERSTRING'"' 427 458 end 428 end 459 end 460 SIGNAL OFF SYNTAX 461 429 462 ok = stream(samba.!msg,'c','close') 430 463 ok = SysFileDelete(samba.!msg) … … 436 469 else do 437 470 retval = 0 471 rpc.srvinfo. = "" 438 472 rpc.srvinfo.LOGONSTATUS=substr(rpcline,pos("NT_STATUS",rpcline),) 439 473 end … … 441 475 IF options.!debug == 1 THEN SAY time()" _rpcsrvinfo() done, "retval 442 476 return retval 477 478 RPCERROR: 479 ok = stream(samba.!msg,'c','close') 480 ok = SysFileDelete(samba.!msg) 481 say " rpc parsing error in line "sigl": "strip(sourceline(sigl)) 482 retval = -1 483 IF options.!debug == 1 THEN SAY time()" _rpclibrary aborted, "retval 484 return retval -
trunk/guitools/shared/sambainit.vrs
r638 r675 72 72 if exist.0 = 1 then samba.!smbd = exist.1 73 73 end 74 if samba.!smbd = "" then do /* RPM/YUM/FHS tree */ 75 call charout , " Are binaries in RPM/YUM/FHS tree? " 76 ok = SysFileTree(UnixRoot'\usr\bin\smbd.exe', exist.,'FO') 77 if exist.0 = 1 then say "Yes."; else say "No." 78 if exist.0 = 1 then samba.!smbd = exist.1 79 end 74 80 if samba.!smbd = "" then do /* in parent directory? */ 75 81 call charout , " Are binaries in parent directory? " … … 234 240 ok = SysMkDir(etc'\samba\spool') 235 241 ok = SysMkDir(etc'\samba\drivers') 242 /* This EA makes the testparm warning about browsing go away. */ 243 /* Note: The EA is NOT marked critical as it should be, neverthelesse this fix works */ 244 ok = SysPutEA(ETC||'\samba\lock',"MODE", "FEFF0400ED410000"x) 236 245 237 246 /* use temporary smbpasswd created by pdbedit */
Note:
See TracChangeset
for help on using the changeset viewer.