TID2031 ( s2031 )
QuickLinkhttp://www.stone-ware.com/swql.jsp?kb=s2031
CategoryLockbox
SummaryChecking lockbox
DetailsI would like to have it check if a user needs to fill out their lock box upon login. How can I do that ?
ResolutionFirst make sure user is using one of the new profiles. Next you need to set up a login script. You will check if user has access to the webapp that uses the lock box entries using the if link allowed.
After that check if EMPTY LOCKBOX "lockbox name" then execute the lockbox.jsp to allow the user to fill in the lockbox value.
Below is an example:


IF link allowed "/StartWebApplication/CN=myWebapp,OU=portal,DC=company,DC=com" THEN
IF EMPTY LOCKBOX "myLogin" OR EMPTY LOCKBOX "myPassword" THEN
executeURL("/apps/selfService/lockbox.jsp") END
END

Another option is to have it check when the webapp is launched.

1. Create your application and make sure the SSO works with lockbox variables, etc. Let’s say your app is cn=app1-webapp,o=stoneware and you have app1lockbox1 and app1lockbox2 that hold the username and password.

2. Make the link to your application not viewable (uncheck the viewable option on the link object).

3. Create a second link object. It will be a standard link.

4. Set the url to something like the following: /apps/selfService/lockbox.jsp?index1=app1lockbox1&index2=app1lockbox2&message=Please set your username and password and click update&redirect=/StartWebApplication/cn=app1-webapp,o=stoneware


When you click on this link (which has the name of the app you are trying to run) it launches the lockbox and checks the lockbox variables. If they are empty, the user is prompted to fill them in. Once they update them, they are redirected to the application. When they launch the app and the lockbox variables are not empty, they are taken straight to the application.

In the lockbox.jsp index1 equals the lockbox index value, index2 is another index value. The index1, index2, index must be the exact name you have in the lockbox config for each lockbox.