When users do not have
operating system user accounts on the IBM Spectrum LSF Application Center server, you can enable them to log in and use IBM Spectrum LSF Application Center by creating a user mapping script that maps login user accounts to operating system user
accounts. This applies to both the graphical user interface as well as Web Services.
About this task
You specify the location of your user mapping script to IBM Spectrum LSF Application Center with the parameter USER_MAP_SCRIPT in the
$GUI_CONFDIR/pmc.conf file. A user that logs in to IBM Spectrum LSF Application Center is authenticated, then mapped to the operating system user account specified in the user mapping
script. The user is then able to perform all operations in IBM Spectrum LSF Application Center as the mapped user account. The mapped user account is displayed in IBM Spectrum LSF Application Center pages. You can view the login user accounts in .
Procedure
-
Create a script that maps login user accounts to operating system user accounts and test
it.
The script has the following requirements:
!/bin/sh
if [ "X$1" = "X" ]; then
echo "Specify a user name." 1>&2
exit 1
fi
case "$1" in
user2)
echo "user9"
exit 0
;;
user3)
echo "user10"
exit 0
;;
*)
echo "User name: $1 is not mapped." 1>&2
exit 1
-
As root, log on to the IBM Spectrum LSF Application Center server.
-
Edit the $GUI_CONFDIR/pmc.conf file and add the parameter
USER_MAP_SCRIPT to specify the location of your user mapping script.
USER_MAP_SCRIPT=/etc/myscript.sh
-
Restart IBM Spectrum LSF Application Center with the pmcadmin stop and pmcadmin start commands
to make changes take effect.
-
Assign roles to the operating system user accounts specified in your user mapping script in the
System & Settings tab on the
page.