Chatee ahora con Soporte
Chat con el soporte

Privilege Manager for Unix 7.3 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

Hash table functions

These are the built-in hash table functions available to use within the policy file.

Table 35: Hash table functions
Name Description

hashtable_add

Add a new list value to a hash table.

hashtable_create

Create a new hash table.

hashtable_enum

Enumerate entries in a hash table.

hashtable_import

Import a hash table from a file.

hashtable_lookup

Look up a value in a hash table.

hashtable_add

Syntax
int hashtable_add ( int hid, string key , list value)
Description

hashtable_add adds a new list value to the specified hash table, associated with the specified key.

Returns 0 if the hash table was successfully added, otherwise returns non-zero.

Example
hid=hashtable_create(); 
hashtable_add(hid, "unxadm", {"johnd", "davel", "jamesp"}); 
hashtable_add(hid, "winadm", {"marym", "stevec", "janel"}); 
print("Windows Admin Group:" + hashtable_lookup(hid, "winadm")); 
Related Topics

hashtable_add

hashtable_import

hashtable_lookup

hashtable_create

Syntax
int hashtable_create ()
Description

hashtable_create creates a new hash table that can be used to store key-value pairs in a format that allows more efficient searching than an array.

Returns an identifier that you can use to add entries to and search the hash table.

Example
hid=hashtable_create(); 
hashtable_add(hid, "unxadm", {"johnd", "davel", "jamesp"}); 
hashtable_add(hid, "winadm", {"marym", "stevec", "janel"}); 
print("Windows Admin Group:" + hashtable_lookup(hid, "winadm")); 
Related Topics

hashtable_import

hashtable_add

hashtable_lookup

hashtable_enum

Syntax
string hashtable_enum (int hid, [int reset])
Description

hashtable_enum returns the next entry in a hash table.

Example
hid=hashtable_create(); 
hashtable_add(hid, "unxadm", {"johnd", "davel", "jamesp"}); 
hashtable_add(hid, "winadm", {"marym", "stevec", "janel"}); 
print("Windows Admin Group:" + hashtable_lookup(hid, "winadm")); 
for (x=hashtable_enum (hid,1); x!=""; x=hashtable_enum(hid,0)) { 
   printf("Table contains key=%s\n", x); 
}
Related Topics

hashtable_import

hashtable_add

hashtable_lookup

Documentos relacionados

The document was helpful.

Seleccionar calificación

I easily found the information I needed.

Seleccionar calificación