Show TOC

Creating and Implementing the Configuration FileLocate this document in the navigation structure

Use

In this step you create the LoginModuleConfiguration.xml file which the system requires.

Procedure
  1. Select the java project name. Open the context menu and choose Start of the navigation path New Next navigation step  Other. End of the navigation path

  2. In the dialog that appears, select Start of the navigation path XML Next navigation step XML. End of the navigation path

  3. Choose Next.

  4. Specify LoginModuleConfiguration as the name of the file.

    Caution

    The name of the XML file must be LoginModuleConfiguration . Otherwise the system will not recognize the file.

  5. Choose Finish .

  6. Open the LoginModuleConfiguration file.

  7. Select the Source sub-tab.

  8. Enter the following code:

                      <login-modules>
                      <!-- holds all login modules -->
                      <login-module>
                      <!-- describes one login module -->
                      <display-name>MyLoginModule</display-name>
                      <!-- holds the display name of the login module -->
                      <class-name>com.sap.example.MyLoginModuleClass</class-name>
                      <!-- holds the full path to the login module class -->
                      <description>testing</description>
                      <!-- holds the description of the login module -->
                      <options>
                      <!-- holds all the options of the login module -->
                      <option>
                      <!-- holds the name/value pair of an option -->
                      <name>user_name_prefix</name>
                      <value>Administrator</value>
                      </option>
                      </options>
                      </login-module>
                      </login-modules>
                   
  9. Save the file.