| Main Page >
    Console Sample Page
 Administration Console Samples - Password Generator Sample
 
 1. Purpose
    Build a plugin interface that allows a customer to write their own 
    random password generation mechanism (when user's password is reset through
    the "Passowrd Reset" module.) 
     
    It is done by  configuring this plugin in the Access Manager console in the 
    "Password Reset" service. 
     
 
 2. Files
 
SamplePasswordGenerator.java 
 
 3. Directions
 
Go to the directory /<IS_INSTALL_DIR>/SUNWam/samples/console/Make sure the  path settings in therules.mkfile is correct.Go to the directory
	/<IS_INSTALL_DIR>/SUNWam/samples/console/PasswordGenerator.Edit the SamplePasswordGeneratorand put your own logic
	of notification in the methodgeneratePassword(...).run gmake. The compiled class will be in the directory$(SAMPLE_ROOT). Create a jarPasswordGenerator.jar.Create a new jar, PasswordGenerator.jar.
        cd $AM_INSTALL_DIR/samples/console
        jar cf PasswordGenerator.jar com
        Copy the PasswordGenerator.jarinto/<IS_INSTALL_DIR>/SUNWam/web-src/password/WEB-INF/lib.Redeploy the console
        Set the DEPLOY_LEVEL to 22 in the silent fileFor web server: run
 amws61config -s <silent file>For application server: run
 amas70config -s <silent file>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
 
	
Step BSelect the Organization, for which you want to configure the  
	PasswordGeneratorplugin.Select the "Passowrd Reset" service and go to attribute
	"Password Reset Option".Enter in the text field the class name as 
	com.iplanet.am.console.user.SamplePasswordGenerator.Save the changes. 
	
Select the "Service Configuration" tab.Select the "Passowrd Reset" service and go to attribute
	"Password Reset Option".Enter in the text field the class name as 
	com.iplanet.am.console.user.SamplePasswordGenerator.Save the changes.Try to Reset the password of any user and see if you are getting
	expected new password as per the plugin or not.
     |