IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


InsertAllUsers()


From a binary userid dump file re-establish all userid definitions. A new 
password must be supplied. 
If one or more additional server ids are included in the dump file, but 
currently not defined, the resyncronisation of servers must be performed. 
The input binary userid dump file is created by the functions 
DumpAllUsers() or DumpUser().   
Syntax 

MyRc = InsertAllUsers(dcName, dumpfile, logfile, newpassword)

  
Parameters 
The parameters specified are: 
dcName            The computer name of the domain controller 
dumpFile          The file name of the resulting binary file containing 
                  userid definitions 
logfile           A file containing log information 
newpassword       A new password must be supplied. 
  
Note 
The function copies userid definitions from a binary file back to the 
domain. Use the log file created by this function to verify the success of 
the operation.   
Example   

/* Insert userid defintions from a binary dump file */

dcName   = '\\ILIDC'
dumpfile = 'C:\USERDEFS.BIN'
logfile  = 'C:\USERDEFS.LOG'
newpassword = 'NEWPW'

/* Get access to LSRXUT.DLL functions */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

MyRc = InsertAllUsers(dcName, dumpfile, logfile, newpassword)
say 'InsertAllUsers() returned:' MyRc

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   

InsertAllUsers() returned:'  0


The log file contains for the insertion of the userids WS222B and WS222C.   

Userid WS222B successfully added.
Userid WS222C already exists. No modification performed.
End of binary userid dump file reached



Inf-HTML End Run - Successful