Environment
Situation
User SSO enabled an application and wanted to apply a password policy. They added the following line to the top of the application;
RestrictVariable $Password eMailPwdPolicy
When they ran the application it logged on via SSO. However, when the password expired and the user was prompted by SecureLogin to enter a new one, after they clicked OK the following error occurred.
BROKER_ENTRY_NOT_FOUND(-107): Error getting password policy script.
Resolution
Use the SecureLogin MMC Snapin to create the eMailPwdPolicy password policy. By doing so, when the password expires, the password policy is invoked and no errors occur.
Additional Information
Root Cause
The user had not created a password policy called ""eMailPwdPolicy"".
This error also occurs if the password policy has been misspelled in the application connector or script e.g. referred to it as eMailPwdPolcy but the actual password policy that was created is called eMailPwdPolicy (with a lowercase i in the word Policy).