Sun Java System Access Manager 7.1 Developer's Guide

ProcedureTo Run the Sample Program

  1. Compile the sample code.

    See Compiling the Policy Code Samples above.

  2. 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.

  3. In the administration console, go to Access Control > root_realm> Services > Policy Configuration.

  4. Under “Selected Dynamic Attributes,” add the following as the two dynamic attributes to be retrieved as part of the Policy Decision:

    • uid

    • cn

  5. Set the following properties in the file:


    DN of the root realm.


    UserId to authenticate as.


    Password to use to authenticate.

  6. 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.