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

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

atoi

Syntax
int atoi ( string nptr )
Description

atoi converts the string representation of a decimal integer to an integer. If the string does not contain a number, it produces a syntax error and rejects the session.

This function returns the converted integer.

Example
x=atoi("123"); 
printf("%d\n", x); 

Returns: 123

Related Topics

insert

join

authenticate_pam

Syntax
int authenticate_pam ( string user [, string service] ) 
Description

The authenticate_pam function authenticates a user by means of the PAM (Pluggable Authentication Method) APIs on the policy servers.

For more information on how to configure PAM, consult the documentation for your platform.

The service parameter identifies the name of the PAM service to use to authenticate the user. This can be any valid service name configured in the PAM system configuration. It defaults to the PAM service "login".

This function returns 0 to indicate failure and 1 to indicate success.

Example
if (user=="paul" && basename(command)=="useradd") 
{ 
   if (!authenticate_pam(user, "sshd")) 
   { 
      reject; 
   } 
   runuser="root"; 
   accept; 
}

authenticate_pam_toclient

Syntax
int authenticate_pam_toclient ( string user [, string service] )
Description

The authenticate_pam_toclient function authenticates a user by means of the PAM (Pluggable Authentication Method) APIs on the policy server.

For more information on how to configure PAM, consult the documentation for your platform.

The service parameter identifies the name of the PAM service to use to authenticate the user. This can be any valid service name configured in the PAM system configuration. It defaults to the PAM service "login".

This function returns 0 to indicate failure and 1 to indicate success.

Example
if (user=="paul" && basename(command)=="useradd") 
{ 
   if (!authenticate_pam_toclient(user, "sshd")) 
   { 
      reject; 
   } 
   runuser="root"; 
   accept; 
   }

basename

Syntax
string basename ( string pathname )
Description

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

Example
print(basename("/var/adm/pm.log"));

Returns: "pm.log"

Related Topics

dirname

관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택