The Shell Script adapter allows you to create a set of actions that perform basic provisioning functions such as creating, updating, deleting, and retrieving user accounts. Each of these actions is defined in a shell script. The Shell Script adapter works by running resource actions as a UNIX resource adapter. To run resource actions, this adapter must
Run its create, delete, and update operations under its /tmp directory.
Have the ability to run commands such as mkdir, umask, touch, cat, chmod, rm - f, rmdir, find, set, and use operators such as <, <<, >, >>.
The adapter supports the provisioning actions listed in the following table:
Action |
Purpose |
Required? |
---|---|---|
create |
Creates a new user. |
No, but if not provided, users cannot be created. |
delete |
Deletes an existing user. |
No, but if not provided, users cannot be deleted. |
getAllUsers |
Gets information about all users on the resource |
No, but if not provided, operations that depend on account iteration, such as reconciliation and Load From Resource will not be available. |
getUser |
Fetches attributes for an existing user. |
Yes. |
update |
Updates attributes for an existing user. |
No, but if not provided, users cannot be updated. |
The $WSHOME/sample/ShellScript directory contains a set of sample resource action definitions that could be used to provision users to a theoretical shell script-based host application. You must customize these definitions to your environment.
For general information about resource actions, see Chapter 51, Adding Actions to Resources.