Custom Commands
The following simple shell scripts illustrate how to write custom commands that receive username and domain as parameters from Evidian Authentication Manager.
In order to use them
Save the scripts in
/wfs/.Make them executable with
chmod a+x [filename].Enter their full path (e.g.
/wfs/start.sh) in Sessions > Evidian > [Session name] > Options.
Start Script
#!/bin/sh# Sample start scriptif [ $# -eq 3 ] ; then # Start "session" gtkmessage –t "Evidian Authentifcation Manager Login" –m "Login as user '$1' with domain '$3'."else exit 1fiexit 0
Stop Script
#!/bin/sh# Sample stop script# Close running "session"pkill gtkmessagegtkmessage -t "Evidian Authentication Manager Logout" -s 5 -S –m "Logout user '$1'."exit 0