Environment
Novell SecureLogin
NSL 6.x
NSL7.x
Desktop Automation Servcice
DAS 2.x
Situation
How to call a DAS command from a SecureLogin script.
It is possible to invoke a DAS action through a SecureLogin application definition as shown below.
Resolution
1. Add the desired action to the DAS actions.xml file (or add in iManager if the DAS configuration is stored in eDirectory).
2. Add the following command to a SecureLogin application definition script:
Run "C:\Program Files\Novell\SecureLogin\Desktop Automation Services\ARS.exe"<action name without brackets>
For example if the actions.xml includes an action called "showdesk" add the following to the desired SecureLogin script:
Run "C:\Program Files\Novell\SecureLogin\Desktop Automation Services\ARS.exe" showdesk
Additional Information
Example:
Use DAS to hide the desktop from the time the user logs in until a desired application window is presented. Typically this would be an application's authentication window. In this example DAS is used to hide the desktop until calc.exe is launched.
1. The following entries in the DAS actions.xml file will hide the desktop on login to the tree (adjust pause interval as needed):
<action name="startup">
<test-logged-in tree="mytree">
<if-true>
<pause interval="1000"/>
<hide-desktop />
</if-true>
<if-false>
<message-box caption="you're not logged in." window-name="not logged in"/>
</if-false>
</test-logged-in>
</action>
<test-logged-in tree="mytree">
<if-true>
<pause interval="1000"/>
<hide-desktop />
</if-true>
<if-false>
<message-box caption="you're not logged in." window-name="not logged in"/>
</if-false>
</test-logged-in>
</action>
<action-triggers>
<on-nds-login action-name="startup" tree="MyTree"/>
</action-triggers>
<on-nds-login action-name="startup" tree="MyTree"/>
</action-triggers>
2. The following action called "showdesk" added to actions.xml will invoke the das unhide-desktop command:
<action name="showdesk">
<unhide-desktop/>
</action>
<unhide-desktop/>
</action>
3. Create a SecureLogin startup script that launches calc.exe (adjust or omit the delay as needed):
delay 2000
run c:\windows\system32\calc.exe
4. Create an application definition script for calc.exe that calls the "showdesk" action from the actions.xml file:
Dialog
Title "Calculator"
EndDialog
Run "C:\Program Files\Novell\SecureLogin\Desktop Automation Services\ARS.exe" showdesk