Once you’ve compiled and deployed the login module, you must load the login module into Access Manager. You can load the login module by using either the Access Manager administration console, or by using the amadmin command.
Login to Access Manager Console as amadmin, using the URL:
http://host.domain:port/Console-Deploy-URL
Click Configuration.
In the Configuration tab, under Authentication, click Core.
Add class file name com.iplanet.am.samples.authentication.spi.providers. LoginModuleSample to the Pluggable Authentication Modules Classes list.
Click Save.
Write a sample XML file as shown in To Load the Login Module Using the Command Line, which will add the LoginModuleSample authentication module entry into the allowed modules and an authenticators list.
<!-- Copyright (c) 2003 Sun Microsystems, Inc. All rights reserved Use is subject to license terms. --> <!DOCTYPE Requests PUBLIC "-//iPlanet//iDSAME 5.0 Admin CLI DTD//EN" "jar://com/iplanet/am/admin/cli/amAdmin.dtd" > <Requests> <SchemaRequests serviceName="iPlanetAMAuthService" SchemaType="Global"> <AddDefaultValues> <AttributeValuePair> <Attribute name="iplanet-am-auth-authenticators"/> <Value>com.iplanet.am.samples.authentication.spi.providers. LoginModuleSample</Value> </AttributeValuePair> </AddDefaultValues> </SchemaRequests> </Requests> |
Use amadmin to load sample.xml:
<AMADMIN> --runasdn uid=amAdmin,ou=People,<root_suffix> --password <password> --data sample.xml
Solaris Sparc/x86: AMADMIN = <PRODUCT_DIR>/bin/amadmin
On W2K: AMADMIN = <PRODUCT_DIR>\\bin\\amadmin