Sun Java System Web Server 7.0 Administrator's Guide

ProcedureTo Add a Authentication Realm

  1. Select the configuration.

    Select the configuration for which you need to add a new authentication realm. Click Configurations tab and select the configuration.

  2. Click on Java > Security tab.

  3. Click New Authentication Button.

  4. Provide Realm Details.

    • Name — Enter a short name for the realm. This name is used to refer to the realm from, for example, web.xml.

    • Class — If you are configuring a custom realm, enter the full Java class name which implements your custom realm. There is no need to enter a class for any of the built-in realms.

    • Type — Select the type of realm. See previous section where Java Realm types are discussed.

    • Properties — Add realm specific properties. For instance property name="file" value="instance_dir/config/keyfile" and property name="jaas-context" value="fileRealm.


    Note –

    Using CLI

    For adding an authentication realm through CLI, execute the following command.


    wadm> create-auth-realm --user=admin --password-file=admin.pwd --host=serverhost 
    --port=8989 --config=config1 basic

    See CLI Reference, create-auth-realm(1).

    Specify the name of a built-in authentication realm type. The type can be file, ldap, pam, native or certificate.