
en.help.task-realmnew.html Maven / Gradle / Ivy
To Create a Realm
The GlassFish Server comes preconfigured with three realms: file, certificate, and admin-realm.
It is also possible to create ldap, JDBC, solaris, PAM, and custom realms.
Generally, you will have one realm of each type on a server, but
on the GlassFish 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.
- Under the Configurations node, expand the server instance or cluster configuration for which
you want to configure realms.
- Expand the Security node.
- Expand the Realms node.
The Realms page opens.
- On the Realms page, click New.
The New Realm page opens.
- In the Name field, type a name for the realm.
- To specify the class name for the realm, do either of the
following:
- From the Class Name drop-down list, select 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
JDBC
com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm
solaris
com.sun.enterprise.security.auth.realm.solaris.SolarisRealm
PAM
com.sun.enterprise.security.auth.realm.solaris.PamRealm
- Select the lower radio button and type the class name for the custom
realm being created.
- (Optional) In the Additional Properties section, specify additional properties.
To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type the
property value in the Value field.
Valid properties depend on the type of realm.
- Click OK.
See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices