The Authentication User ID Generation Sample can be configured at the Organization level, and then used or invoked by the out-of-box Membership/Self- registration authentication module.
Log in to Access Manager console as amAdmin. Use the following URL:
http://host.domain:port/Console-Deploy-URI
Click the Identity Management tab, and select your organization.
From the View menu, select Services.
In the navigation frame, under Authentication, click Core.
Add the following to the Pluggable User Name Generator Class attribute: com.iplanet.am.samples.authentication.spi.genuid. UserIDGeneratorSample
Click Save to save the changes.
Log out.
This module is the one which invokes the UserIDGenerator SPI implementation class. By default, only the Membership/Self-registration authentication module calls this SPI implementation.
Make sure that you have registered and enabled the Membership authentication module, and that you have created a template for the organization.
Enter the following URL:
http://host.domain:port/Service-Deploy-URI/UI/Login?module=Membership
If you choose to use an organization other than the default, be sure to specify that in the URL using the org parameter. Example: org=orgName
Click New User.
You should be able to register any existing username or user ID.
The UserIDGeneratorSample will be executed. You will be presented with the generated User IDs choice menu to choose any one username or user ID.