Although the method for configuring container-managed EIS sign-on
is deprecated in WebSphere Application Server Version 6, this topic uses a
Dynamic Web Project to illustrate how to configure a component for container-managed
EIS sign-on.
This configuration setting is reflected by the <res-auth>Container</res-auth> directive
of the resource reference used by your application.
- Set the <res-auth> directive to Container.
- In the J2EE perspective of the Project Explorer view, expand Dynamic
Web Projects > PhoneBookWeb.
- Right-click Deployment Descriptor: PhoneBookWeb and
select Open With > Deployment Descriptor Editor.
- In the Web Deployment Desccriptor view, click the References tab
and select the J2C Connection factory reference for your Web application.
For example, select imsCFacRef..
- In the Authentication field, select Container from the drop-down
list, if it is not already selected.
- When you close the Web Deployment Descriptor Editor and click Yes to
save your changes. The following code is added to the deployment descriptor
of your Web application:
<res-auth>Container</res-auth>
- Specify a method of providing the user ID and password that you
want the application server. To use a JAAS authentication alias
to provide the user ID and password that you can use for EIS sign-on, complete
the following steps:
- In the Servers view, right-click the server and select Run
administrative console.
- Expand Resources and select Resource Adapters.
- Select the resource adapter you want to modify.
- Under Additional Properties, click J2C connection factories.
- Under Related Items, click J2EE Connector Architecture (J2C)
authentication data entries.
- Above the list of aliases, click New.
- Enter an alias name, your user ID, password, and optional description.
Select OK.
- Select the JAAS authentication alias for the Container-managed
authentication alias property of the J2C connection factory used by your application. You can do this when you first create the connection factory or later
by editing the connection factory. To edit the connection factory:
- In the Administrative Console for the server you selected, navigate to
the connection factory that you wish to modify. For example, Resource
adapters > server_name > J2C connection factories > connection_factory_name.
- In the Container-managed authentication alias drop down list, select the
JAAS authentication alias to be used for the container-managed authentication
by applications using that connection factory.
- Select OK.
For information about the properties of a connection factory, see Connection Properties.
Note:
The process for configuring container-managed sign-on in a standalone WebSphere® Application
Server is the same as the process for a WebSphere Application Server in a
unit test environment.