#### To 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. 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.

      - For a description of `file` realm properties, see Editing the file and admin-realm Realms.

      - For a description of `certificate` realm properties, see Editing the certificate Realm.

      - For a description of `ldap` realm properties, see Creating an ldap Realm.

      - For a description of `solaris` realm properties, see Creating the solaris Realm.

      - For a description of custom realm properties, see To create a custom realm.

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

8. Click OK.

##### More Information
Equivalent asadmin command

`create-auth-realm`