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 script
if [ $# -eq 3 ] ; then
# Start "session"
gtkmessage –t "Evidian Authentifcation Manager Login" –m "Login as user '$1' with domain '$3'."
else
exit 1
fi
exit 0
Stop Script:
#!/bin/sh
# Sample stop script
# Close running "session"
pkill gtkmessage
gtkmessage -t "Evidian Authentication Manager Logout" -s 5 -S –m "Logout user '$1'."
exit 0