Configuring authentication aliases for the Liberty profile

You can configure an authentication data alias to use with a resource reference for authentication on the Liberty profile.

About this task

You can use an authentication data alias by defining a user and password for authentication in the Liberty profile. To do this, add the jdbc-4.0 Liberty feature to the server.xml file and add at least one authData element.

Note: There is no authentication alias principal mapping module support.

Procedure

  1. Add the jdbc-4.0 Liberty features in the server.xml file.
        <featureManager>
            <feature>jdbc-4.0</feature>
        </featureManager>
  2. Configure the authData element in the server.xml file as follows. You must use a unique name for the assigned id attribute value.
        <authData id="auth1" user="dbuser1" password="dbuser1pwd"/>
  3. Configure the IBM® deployment descriptor, for example, the ibm-web-bnd.xml file, of your application by using the authentication-alias element in the resource reference. The name attribute value must match the id attribute defined in the server.xml file.
       <resource-ref name="jdbc/mydbresource" binding-name="jdbc/mydbresource">
         <authentication-alias name="auth1"/>
       </resource-ref>

Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Monday, 21 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-base-iseries&topic=twlp_sec_jca
File name: twlp_sec_jca.html