pbcall

Version 4.0.0 and later: pbcall setting available.

The pbcall program is used for two purposes. To test, on the local machine, what a given function call would do, and to allow a Privilege Management for Unix and Linux policy language function to be executed from the command line.

pbcall –policy-function-name args …
-policy-function-name Required. The name of the policy function.
args Optional. The arguments to the function.

None

Using the Privilege Management for Unix and Linux stat() function:
pbcall –stat /etc

This command returns, on the screen, the results of a call to the Privilege Management for Unix and Linux stat call. Using this program from a Privilege Management for Unix and Linux session, you can execute a command such as:

list = system("/usr/local/bin/pbrun –h "+submithost+
" /usr/local/bin/pbcall –stat /etc");
statresult = split(list,",");

This command gives the same results as:

statresult = stat("/etc")

except that it is executed on the local machine as opposed to the policy server host.

Multiple Privilege Management for Unix and Linux functions can be called at the one time:

pbcall –gethome user1 –getname user1

The output is put on different lines.

Lists need to be specified within quotation marks. For example:

pbcall –search "{a,b,c}" a

Strings can be quoted using single quotation marks or double quotation marks.