![]() |
Sun Java System Identity Server 2004Q2 Sample |
Main Page > Console Sample Page Administration Console: Password Generator SamplePurposeBuild a plugin interface that allows a customer to write their own random password generation mechanism(when user's password is reset through the "Password Reset" module.)It is done by configuring this plugin in the IS console in the "Password Reset" service. Files1. SamplePasswordGenerator.javaDirections1. Go to the directory /opt/SUNWam/samples/console/. Make sure the path settings in the rules.mk file is correct.2. Go to the directory /opt/SUNWam/samples/console/PasswordGenerator 3. Edit the SamplePasswordGenerator and put your own logic of notification in the method generatePassword(...). 4. run gmake. The compiled class will be in the directory $(SAMPLE_ROOT). create a jar PasswordGenerator.jar. 5. Copy the PasswordGenerator.jar into "/opt/SUNWam/web-src/password/WEB-INF/lib". 6. Redeploy the console Set the DEPLOY_LEVEL to 22 in the silent file For webserver: run amws61config -s <silent file> For application server: run amas70config -s <silent file> 7. Login to IS 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 a) Select the Organization, for which you want to configure the "PasswordGenerator" plugin. b) Select the "Password Reset" service and go to attribute "Password Reset Option". c) Enter in the text field the class name as "SamplePasswordGenerator". d) Save the changes. Step -B a) Select the "Service Configuration" tab. b) Select the "Password Reset" service and go to attribute "Password Reset Option". c) Enter in the text field the class name as "com.iplanet.am.console.user.SamplePasswordGenerator". d) Save the changes. 8. Try to Reset the password of any user and see if you are getting expected new password as per the plugin or not.
|