NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-002
3-29
MemoryRealm
JDBCRealm
Obtains authentication information stored in a relational database, accessed
through a Java Database Connectivity (JDBC) driver.
JNDIRealm
Obtains authentication information stored in an Lightweight Directory Access
Protocol (LDAP) based directory server, accessed through a Java Naming and
Directory Interface (JNDI) provider.
JAASRealm
Obtains authentication information through the Java Authentication and
Authorization Service (JAAS) framework.The JAAS package is fully integrated in
J2SE version 1.4.
To configure a realm, add an XML element to your
$NSJSP_HOME/conf/iTP_server.xml configuration file that looks something like
Example 3-20 or you can add an XML element to your context configuration files
located at $NSJSP_HOME/conf/NSJSP/<host-name>/ directory.
The <Realm> element can be nested inside one of three elements. Where the
<Realm> element is nested has a direct impact on the scope of that realm (that is,
which web applications will share the same authentication information):
•
Inside an <Engine> element – This realm will be shared across all web
applications on all virtual hosts, unless it is overridden by a <Realm> element
nested inside a subordinate <Host> or <Context> element.
•
Inside a <Host> element – This realm will be shared across all web applications
for this virtual host, unless it is overridden by a <Realm> element nested inside a
subordinate <Context> element. The <Context> element is defined in XML
configuration files located in the $NSJSP_HOME/conf/NSJSP/<host-name>/
directory.
•
Inside a <Context> element – This realm will be used only for this web
application. The <Context> element defined in XML configuration files located in
the $NSJSP_HOME/conf/NSJSP/<host-name>/ directory.
MemoryRealm
MemoryRealm is a simple implementation of the NSJSP realm interface. It is not
designed for production use. At startup time, MemoryRealm loads information about all
users, and their corresponding roles, from an XML document (by default, this
Example 3-20. Adding an XML Element to Configure a Realm
<Realm className="... class name for this implementation"
... other attributes for this implementation .../>