(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_sys, prev: DELETE_INTRUSION, next: DELLNM)


DELETE_PROXY - Delete or Modify Proxy


Format:
    vms_sys.delete_proxy (rem_node, rem_user [,local_user] [,flags])
Returns:

None

Arguments:

rem_node
Remote node name.
rem_user
Remote username.
local_user
Local user name. It must be known to the local system.
flags
Functional specification and type of local_user (NOdefault). The bit masks are not available from a separate module ($PRXDEF).
Examples:
>>> import vms_sys

>>> vms_sys.add_proxy ('REMNOD', 'REMUSR', 'NOPRIV')
>>> PRX_M_DEFAULT = 256
>>> vms_sys.add_proxy ('REM2D', 'REMUSR', 'NOPRIV', PRX_M_DEFAULT)

UAF> show /proxy r*::*

 Default proxies are flagged with (D)

REM2D::REMUSR
    NOPRIV (D)

REMNOD::REMUSR
    NOPRIV
UAF>


>>> vms_sys.delete_proxy ('REM2D', 'REMUSR', 'NOPRIV')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_sys.error: (116311650, '%SECSRV-E-INVALIDDELETE, you cannot delete\
 the last user of a record, you must delete the entire record')
>>>
>>> vms_sys.delete_proxy ('REM2D', 'REMUSR')

UAF> show /proxy r*::*

 Default proxies are flagged with (D)

REMNOD::REMUSR
    NOPRIV
UAF>


>>> vms_sys.delete_proxy ('REMNOD_NO', 'REMUSR_NO')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_sys.error: (116311666, '%SECSRV-E-NOSUCHPROXY, no proxy record\
 matches your specification')
>>>

(go to: table of contents, index, list of vms_sys, prev: DELETE_INTRUSION, next: DELLNM)

21-JAN-1999 ZE.