지금 지원 담당자와 채팅
지원 담당자와 채팅

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

remoteuserinfo

Syntax
list remoteuserinfo ( string hostname, string username )
Description

remoteuserinfo returns user information for the specified user from the remote host.

The remote host must be configured to run either pmmasterd or pmclientd to respond to this function.

Example
#print root's info on the runhost 
print( remoteuserinfo(runhost,"root") ) 
Related Topics

remotegroupinfo

remotesysinfo

remoteuserlist

Syntax
list remoteuserlist ( string hostname )
Description

remoteuserlist returns the full list of user names on the remote host.

The remote host must be configured to run either pmmasterd or pmclientd to respond to this function.

Example
#print the user list on the runhost 
print(remoteuserlist(runhost)) 
Related Topics

remotegrouplist

remoteusergroups

String functions

These are the built-in string functions available to use within the pmpolicy file.

Table 45: String functions
Name Description

match

Match a string to a pattern.

pad

Return a new string at a specified character length.

strindex

Return the position of a substring in a string.

strlen

Return the length of a string.

strsub

Return a substring of a string.

sub

Return a new string with specified replacements.

subst

Substitute part of a string.

substr

Return a substring of a string.

match

Syntax
int match( string regularexpr, string str )
Description

match compares a string to a regular expression.

Returns true if a match is found; otherwise, false.

Example
# check if user begins with j and ends with t… 
if (match("^j.*t$", user) ) { 
   … 
}
관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택