(go to: table of contents, index, list of vms_sys, prev: MOD_HOLDER, next: MOUNT)
Format:
None
Arguments:
MOD_IDENT - Modify Identifier in Rights Database
Modifies the specified identifier record in the rights database.
28-SEP-1998 ZE.
vms_sys.mod_ident (id [,set_attrib] [,clr_attrib] \
[,new_name] [,new_value])
Returns:
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> show /identifier /full ID_1
Name Value Attributes
ID_1 %X80010011 RESOURCE
UAF> show /identifier /full ID_2
Name Value Attributes
ID_2 %X80010012 RESOURCE DYNAMIC
UAF>
>>> import vms_sys
>>> import vms_kgbdef
>>> id_1 = 0x80010011 # identifier ID_1
>>> id_2 = 0x80010012 # identifier ID_2
>>> at_dyn = vms_kgbdef.KGB_M_DYNAMIC
>>> vms_sys.mod_ident (id_1, at_dyn, vms_kgbdef.KGB_M_RESOURCE)
UAF> show /identifier /full ID_1
Name Value Attributes
ID_1 %X80010011 DYNAMIC
UAF> ! RESOURCE cleared, DYNAMIC set
>>> # try to change the identifier value of ID_1 to that of ID_2
>>> # which already exists
>>> vms_sys.mod_ident (id_1, None, None, None, id_2)
Traceback (innermost last):
File "<stdin>", line 1, in ?
vms_sys.error: (8748, '%SYSTEM-F-DUPIDENT, duplicate identifier')
>>>
>>> # try to change the identifier value of ID_1 to an unused value
>>> vms_sys.mod_ident (id_1, None, None, None, 0x80012345)
UAF> show /identifier /full ID_1
Name Value Attributes
ID_1 %X80012345 DYNAMIC
UAF>
>>> # ID_1 has a new value after above operation !
>>> id_1 = 0x80012345
>>> # try to rename identifier %X80012345 (named ID_1) to ID_2 which
>>> # does already exist
>>> vms_sys.mod_ident (id_1, None, None, 'ID_2')
Traceback (innermost last):
File "<stdin>", line 1, in ?
vms_sys.error: (148, '%SYSTEM-F-DUPLNAM, duplicate name')
>>>
>>> # rename identifier %X80012345 (named ID_1) to ID_1X which
>>> # does not exist
>>> vms_sys.mod_ident (id_1, None, None, 'ID_1X')
UAF> show /identifier /full ID_1X
Name Value Attributes
ID_1X %X80012345 DYNAMIC
UAF>
(go to: table of contents,
index,
list of vms_sys,
prev: MOD_HOLDER,
next: MOUNT)