立即与支持人员聊天
与支持团队交流

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

dirname

Syntax
string dirname ( string pathname )
Description

dirname returns the directory portion of a pathname. It does not check that the filename or path exist.

Example
print(dirname("/var/adm/pmlog"));

Returns: "/var/adm"

Related Topics

basename

feature_enabled

Syntax
int feature_enabled (int feature )
Description

feature_enabled checks whether a particular feature is enabled on the policy server. Use this function to detect support for platform-dependant features; currently these comprise FEATURE_LDAP and FEATURE_VAS (defined as integer constants).

Returns true if the feature is enabled, otherwise false.

Example
if (feature_enabled(FEATURE_LDAP)) 
{ 
   if (proc_do_ldap_authentication(user)) 
   { 
      accept; 
   } 
}

fileexists, access

Syntax
int fileexists ( string path )
int access ( string path )
Description

fileexists or access() determines whether the file fn or path exists on the policy server.

Returns true if the path name exists, false if not.

Example
if (fileexists("/opt/quest/pmc") ) { 
   print ("PMC is installed."); 
}
if (access("/opt/quest/pmc") ) { 
   print ("PMC is installed."); 
}
Related Topics

access

getopt

Syntax
int getopt ( string argv, string optstring))
Description

getopt breaks up command lines for easier parsing and legal review. It examines a list of arguments for short options, which is a dash followed by a single letter or parameter.

Example
while ((option = getopt(args, "vh")) !=""){
print("Matched option",option);
}
Related Topics

getopt_long

getopt_long_only

optarg

optind

optopt

optreset

optstrictparameters

相关文档

The document was helpful.

选择评级

I easily found the information I needed.

选择评级