2.0

Table Of Contents
VMware ACE Administrator’s Manual
112 VMware, Inc.
5Ifyouareenablingthepoweronscriptafteryouhavealreadydeployedpackages
withthisACEmaster,providethescripttotheuserusingapolicy/serverupdate
packageoracustompackagewithACEResources.
Whenthescriptrunsontheuserssystem,thescriptshouldprintTRUE(power
on)or
FALSE(poweroff),andshouldconformtostandardscriptexitcoderules.
Thefollowingisasamplepoweronscript:
#
# VMware Sample Script
#
# Sample script for ACE power-on hook
#
# Description:
# This sample script implements a power-on hook for ACE. This can be used
in addition
# to authentication to control the circumstances under which an ACE is
allowed to run.
#
# This script assumes that the username is defined in the environment
variable TEST_USERNAME
# (a ficticious environment variable used for this sample) and returns TRUE
if the user
# is allowed to run, and FALSE otherwise.
#
# Input to script:
# None.
#
# Returns:
# TRUE if username is on white list.
# FALSE if username is not on white list or is undefined.
#
# Expected output:
# One of the strings "TRUE" or "FALSE"
#
#
my @white_list = ("alan", "bob", "mary", "sonia", "chris");
my $username = $ENV{TEST_USERNAME};
if (! defined $username) {
print "FALSE";
exit(0);
}
NOTEThescriptissignedbeforedeploymenttopreventtampering.Seepage125for
moreinformationaboutresourcesigning.