(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_sys, prev: REM_HOLDER, next: RESUME)


REM_IDENT - Remove Identifier from Rights Database


Removes the specified identifier record and all its holder records (if any) from the rights database.

Format:

    vms_sys.rem_ident (id)
Returns:

None

Arguments:

id
Binary value of identifier to be removed.
Examples:
UAF> add /identifier ID_1 /attributes=resource
%UAF-I-RDBADDMSG, identifier ID_1 value %X80010011 added to rights \
 database
UAF> add /identifier ID_2 /attributes=(dynamic,resource)
%UAF-I-RDBADDMSG, identifier ID_2 value %X80010012 added to rights \
 database
UAF> grant /identifier ID_1 SYSTEM /attributes=resource
UAF> grant /identifier ID_1 ZESSIN /attributes=resource
%UAF-I-GRANTMSG, identifier ID_1 granted to SYSTEM
UAF> grant /identifier ID_2 SYSTEM /attributes=(dynamic)
UAF> show /identifier /full ID_1
  Name                             Value           Attributes
  ID_1                             %X80010011      RESOURCE
    Holder                           Attributes
    SYSTEM                           RESOURCE
    ZESSIN                           RESOURCE
UAF> show /identifier /full ID_2
  Name                             Value           Attributes
  ID_2                             %X80010012      RESOURCE DYNAMIC
    Holder                           Attributes
    SYSTEM                           DYNAMIC
UAF> show SYSTEM
Username: SYSTEM                           Owner:  SYSTEM MANAGER
Account:  SYSTEM                           UIC:    [1,4] ([G1,SYSTEM])
[...]
  SYSLCK    SYSNAM    SYSPRV    TMPMBX    UPGRADE   VOLPRO    WORLD
Identifier                         Value           Attributes
  ID_2                             %X80010016      DYNAMIC
  ID_1                             %X80010011      RESOURCE
UAF>


>>> import vms_sys
>>> import vms_kgbdef

>>> id_1 = 0x80010011    # identifier ID_1
>>> id_2 = 0x80010012    # identifier ID_2

>>> vms_sys.rem_ident (id_1)

UAF> show /identifier /full ID_1
%UAF-E-SHOWERR, unable to complete SHOW command
-SYSTEM-F-NOSUCHID, unknown rights identifier
UAF> show SYSTEM
Username: SYSTEM                           Owner:  SYSTEM MANAGER
Account:  SYSTEM                           UIC:    [1,4] ([G1,SYSTEM])
[...]
  SYSLCK    SYSNAM    SYSPRV    TMPMBX    UPGRADE   VOLPRO    WORLD
Identifier                         Value           Attributes
  ID_2                             %X80010016      DYNAMIC
UAF>

>>> # try to remove identifier %X80010011 (named ID_1) which
>>> #   has already been removed
>>> vms_sys.rem_ident (id_1)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_sys.error: (8684, '%SYSTEM-F-NOSUCHID, unknown rights identifier')
>>>


>>> uic = 0x10004     # user SYSTEM has UIC [1,4]
>>> vms_sys.rem_ident (uic)
UAF> show SYSTEM

Username: SYSTEM                           Owner:  SYSTEM MANAGER
Account:  SYSTEM                           UIC:    [1,4] ([1,4])
[...]               UIC-based identifier name deleted ----!!!!!

UAF> ! re-insert the name
UAF> add /identifier /value=uic=[1,4] SYSTEM
%UAF-I-RDBADDMSGU, identifier SYSTEM value [000001,000004] added \
 to rights database
UAF>

(go to: table of contents, index, list of vms_sys, prev: REM_HOLDER, next: RESUME)

28-SEP-1998 ZE.