NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
3-35
JAASRealm
*
*/
NonStopUserDB {
com.tandem.servlet.jaas.NonStopLoginModule REQUIRED ;
};
If you use the NonStopLoginModule, the user name may be specified in any of
the following forms:
Nonstop User Name: SUPER.WEBMSTR
Nonstop Group,User: 255,20
Nonstop User ID: 65305
Safeguard Alias: webman
On successful authentication of NonStop users (and optionally Safeguard aliases if
Safeguard has been configured), the NonStopLoginModule returns the groups
the user or alias belongs to, in addition to the actual Nonstop user name as the
roles that are granted to the authenticated Nonstop user.
For example, if the Safeguard alias “webman" (for NonStop user SUPER.WEBMSTR)
is configured as belonging to groups SUPER, SOFTWARE and WEB, then on
successful authentication, the roles returned for the “webman" alias are:
SUPER
SOFTWARE
WEB
SUPER.WEBMSTR (the actual NonStop user name)
4. Configure the security constraints in your web application deployment descriptors
(modify the web application's web.xml for the resources you want to protect). For
example, update web.xml in your application to allow “SUPER” and “SYSSW”
NonStop user group to access your application:
:
:
<security-constraint>
<web-resource-collection>
<web-resource-name>My Appl's Secure Pages</web-resource-name>
<description>Security constraint for resources in the secure
directory</description>
<url-pattern>/secure/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description>only let the system user login </description>
<role-name>SYSSW</role-name>
<role-name>SUPER</role-name>
</auth-constraint>
</security-constraint>
:
:
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<description>The System User ROLE</description>
<role-name>SYSSW</role-name>
<role-name>SUPER</role-name>










