Chatta subito con l'assistenza
Chat con il supporto

Privilege Manager for Unix 7.1 - 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

timebetween

Syntax
int timebetween ( int starttime, int endtime )
Description

The timebetween function returns a 0 or 1 depending on whether the current time is between those specified. Use this function to determine whether a user is submitting a request within valid business hours. Times must be specified using the 24-hour clock. Do not use leading zeroes for time specifications, because this will be interpreted in octal. For example, 12:30 am can be 30 or 2430.

Example
If (timebetween(800, 1630)) { 
   proc_working_hours_rules(); 
} else { 
   proc_outside_working_hours_rules(); 
}

tolower

Syntax
string tolower ( string expr )
Description

tolower converts all upper case characters in the string to lower case. Leaves all other characters unchanged. The tolower function is frequently used in search and comparison expressions to make them case-insensitive.

Example

The following example accepts user inputs of "adrian", "Adrian", or "ADRIAN" and returns "adrian".

#this returns "adrian" 
tolower("Adrian"); 

toupper

Syntax
string toupper( string str )
Description

toupper returns a copy of str with all characters converted to uppercase, if possible. Some characters such as !£$%^& or numbers do not have an uppercase equivalent.

Example
user = "ADRIAN" 
if ( user == toupper("Adrian")) { 
   accept; } 
if (tolower(input("User:"))=="adrian") 
   accept;

uname

Syntax
list uname ()
Description

The uname function returns a list containing the following uname information from the policy server:

  • Operating System Name
  • Network node hostname
  • Operating System Release
  • Operating System Version
  • Machine (hardware) type
Example
print("Master OS is :" + uname());
Related Topics

osname

unsetenv

Related Documents

The document was helpful.

Seleziona valutazione

I easily found the information I needed.

Seleziona valutazione