Sun Java System Access Manager version 7 2005Q4
Sample
 

Main Page > Console Sample Page

Administration Console Samples - Notify Password Sample


1. Purpose

Build a plugin interface that allows a customer to write their own notification mechanism, when user's password is reset through the "Password Reset" module.

It is done by configuring this plugin in the Access Manager console in the "Password Reset" service.


2. Files

  1. SampleNotifyPassword.java


3. Directions

  1. Go to the directory /<IS_INSTALL_DIR>/SUNWam/samples/console/ Make sure the path settings in the rules.mk file is correct.
  2. Go to the directory /<IS_INSTALL_DIR>/SUNWam/samples/console/NotifyPassword.
  3. Edit the SampleNotifyPassword and put your own logic of notification in the method notifyPassword(...).
  4. run gmake. The compiled class will be in the directory $(SAMPLE_ROOT). Create a jar NotifyPassword.jar.
  5. Copy the NotifyPassword.jar into /<IS_INSTALL_DIR>/SUNWam/web-src/password/WEB-INF/lib.
  6. Redeploy the console Set the DEPLOY_LEVEL to 22 in the silent file
    For web server: run amws61config -s <silent file>
    For application server: run amas70config -s <silent file>
  7. Login to Access Manager Console. If you want to configure this plugin for a particular Organization then do Step A. If you want to configure for All the organization globally then follow step B.
    Step A
    • Select the Organization, for which you want to configure the NotifyPassword plugin.
    • Select the "Password Reset" service and go to attribute "Password Change Notification Option".
    • Enter in the text field the class name as com.iplanet.am.console.user.SampleNotifyPassword.
    • Save the changes.
    Step B
    • Select the "Service Configuration" tab.
    • Select the "Password Reset" service and go to attribute "Password Change Notification Option".
    • Enter in the text field the class name as com.iplanet.am.console.user.SampleNotifyPassword.
    • Save the changes.
  8. Try to Reset the password of any user and see if you are getting expected notification or not.


End of Sample