Type string READONLY
host identifies the host name where the user has requested to run the command. The value is set to the host name selected by the pmrun –h <hostname> option, and defaults to nodename. You may expand it to a fully qualified name, if shortnames are not used.
# If the requested host is not in the allowed_hosts list, reject the command allowed_hosts = {“hosta.test.com”, “hostb.test.com”, “hostc.test.com”}; if ( host !in allowed_hosts ) { reject “Commands on host “ + host + “ are not allowed. \n”; }
Type integer READONLY
hour contains the hour the request was submitted (0 – 23).
if (hour == 12) { // require the users password from 12:00 to 12:59 if(!(userpasswd()) reject; } accept;
Type string READONLY
masterhost contains the host name of the host running pmmasterd.
printf("Privilege Manager is authorizing your request on host: %s\n",masterhost);
accept;
Type string READONLY
masterversion contains the description of Privilege Manager policy server host.
printf("Privilege Manager %s is authorizing your request on host %s\n",
masterversion, masterhost);
accept;
© 2021 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy