Show TOC

Procedure documentationCreating and Implementing the Configuration File Locate this document in the navigation structure

 

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   New   Other.  

  2. In the dialog that appears, select   XML   XML.  

  3. Choose Next.

  4. Specify LoginModuleConfiguration as the name of the file.

    Caution Caution

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

    End of the caution.
  5. Choose Finish.

  6. Open the LoginModuleConfiguration file.

  7. Select the Source sub-tab.

  8. Enter the following code:

    Syntax Syntax

    1. <login-modules>
    2. <!-- holds all login modules -->
    3. <login-module>
    4. <!-- describes one login module -->
    5. <display-name>MyLoginModule</display-name>
    6. <!-- holds the display name of the login module -->
    7. <class-name>com.sap.example.MyLoginModuleClass</class-name>
    8. <!-- holds the full path to the login module class -->
    9. <description>testing</description>
    10. <!-- holds the description of the login module -->
    11. <options>
    12. <!-- holds all the options of the login module -->
    13. <option>
    14. <!-- holds the name/value pair of an option -->
    15. <name>user_name_prefix</name>
    16. <value>Administrator</value>
    17. </option>
    18. </options>
    19. </login-module>
    20. </login-modules>
    End of the code.
  9. Save the file.