IBM OS/2 LAN Server REXX Utility DLL


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


NETLOGONASN Delete


The function removes all or one resource from a userid logon assignment 
list.   
Syntax 


MyRc = NetDelete(NETLOGONASN, SrvName, UserId)
MyRc = NetDelete(NETLOGONASN, SrvName, UserId, AliasName)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
UserId            The userid to be deleted 
AliasName         The alias name which will be removed from the logon 
                  assignment list 
                  Use the function call with 3 parameters to delete all 
                  logon assignments for a userid. Use the function call 
                  with 4 parameters to delete a logon assignment for a 
                  known alias 
  
Note 
The server computer name can be specified as '' for a local server.   
Example   


/* Delete a logon assignment for a user */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETLOGONASN = 52
SrvName = '\\ILIDC'
UserId = 'WS12345'
Alias = 'BOOKS'

myRc = NetDelete(NETLOGONASN, SrvName, UserId, Alias)

if myRc <> '0' then do
 say 'Got error from NetDelete() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say 'Logon Assignment removed successfully'
 say
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Logon Assignment removed successfully



Inf-HTML End Run - Successful