Sun Java System Access Manager 7.1 Developer's Guide

ProcedureTo Load the Login Module Using the Command Line

  1. 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>
    
                         
  2. 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