Sun Java System Application Server Platform Edition 8.2 Administration Guide

ProcedureTo create a realm

The Application Server comes preconfigured with three realms: file, certificate, and admin-realm. It is also possible to create ldap, solaris, and custom realms. Generally, you will have one realm of each type on a server, but on the Application Server there are two file realms: file and admin-realm. These are two realms of the same type used for two different purposes. It is also possible to have a different certificate database for each virtual server on your system.

  1. In the Admin Console tree component, expand the Configuration node.

  2. Expand the Security node.

  3. Select the Realms node.

  4. On the Realms page, click New.

    The Create Realm page is displayed.

  5. Enter a name for the realm in the Name field.

  6. Specify the class name for the realm being created.

    Valid choices are shown in the following table.

    Realm Name  

    Class Name  

    file

    com.sun.enterprise.security.auth.realm.file.FileRealm

    certificate

    com.sun.enterprise.security.auth.realm.certificate.CertificateRealm

    ldap

    com.sun.enterprise.security.auth.realm.ldap.LDAPRealm

    solaris

    com.sun.enterprise.security.auth.realm.solaris.SolarisRealm

    custom

    Name of login realm class 

  7. Add the required properties and any desired optional properties for the realm.

    1. Click Add Property.

    2. In the Name field, enter the name of the property.

    3. In the Value field, enter the value of the property.

  8. Click OK.

Equivalent asadmin command

create-auth-realm