This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.

Configuring authentication aliases for Liberty

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

About this task

You can use an authentication data alias by defining a user and password for authentication in Liberty. 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. If the authData element is used as a top-level configuration element, you must set the id attribute value to a unique authentication alias.
        <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



Timestamp icon Last updated: Tuesday, 12 December 2017
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_sec_jca
File name: twlp_sec_jca.html