Compile the sample code.
See Compiling the Policy Code Samples above.
Set the environment variable LD_LIBRARY_PATH.
On Solaris, add /usr/lib/mps/secv1 to LD_LIBRARY_PATH.
On Linux, add /opt/sun/private/lib to LD_LIBRARY_PATH .
On HP-UX, add /opt/sun/private/lib to the environment variable SHLIB_PATH.
In the administration console, go to Access Control > root_realm> Services > Policy Configuration.
Under “Selected Dynamic Attributes,” add the following as the two dynamic attributes to be retrieved as part of the Policy Decision:
Set the following properties in the PolicyEvaluation.properties file:
DN of the root realm.
UserId to authenticate as.
Password to use to authenticate.
Run the gmake createPolicies command. (On Windows, make.bat createPolicies.)
gmake createPolicies .
Use the administration console to verify that the policies policy1 and refpolicy1 are added to Access Manager.