Enabling users who do not have OS user accounts to use IBM Spectrum LSF Application Center
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
Create a script that maps login user accounts to operating system user accounts and test
The script has the following requirements:
- The root user must have read and execute permissions on the specified script.
- If High Availability is enabled, the script must be accessed with the same path by all IBM Spectrum LSF Application Center instances.
- Script input: The script must take user name as input. For example:
- Script output has the following requirements:
- If successful, the script must exit with an exit code of 0 and write the name of the mapped operating system user account to stdout
- If an error occurs, the script must exit with a non-zero exit code and write the error to stderr. IBM Spectrum LSF Application Center writes the error message to the following log file: $GUI_CONFDIR/../logs/host_name/messages.log.
!/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.
- 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.