My Oracle Support Banner

OPSS TaskQueryService - Identity Service Authentication Failure (Doc ID 2816161.1)

Last updated on DECEMBER 22, 2023

Applies to:

Oracle Platform Security for Java - Version and later
Information in this document applies to any platform.


On : version, OPSS

When attempting to invoke TaskQueryService, the following error occurs.


In config.xml, for the login module

<sec:authentication-provider xsi:type="wls:default-authenticatorType">

<wls:host><AD_HOSTNAME> </wls:host>



In jps-config.xml, for application level authentication
<serviceInstance name="ADAuthenticator"
<property name="username.attr" value="sAMAccountName"/>
<property name="user.login.attr" value="sAMAccountName"/>
<serviceInstance name="idstore.ldap" provider="idstore.ldap.provider">
<description>LDAP Identity Store Service Instance</description>
<property name="virtualize" value="true"/>
<property name="idstore.config.provider"
<property name="CONNECTION_POOL_CLASS"
<serviceInstanceRef ref="ADAuthenticator"/>

The application integrates with the Worklist functionality by using the WebServices like TaskQueryService. To invoke TaskQueryService,first need to provide the authentication credentials, get the token and execute theTaskQuery Service. Most of the calls are successful but a few started failing
recently. Please see the error below.

The <sample_user> is defined in Weblogic as a local user using DefaultAuthenticator , Oracle SOA Suite

The recent change done was to connect to LDAP with ldaps.

-<part name="payload" xmlns:xsi="">-<credential xmlns="">

-<part name="payload">
<message xmlns="">

Failing with the following error

exception.type: ERROR
exception.severity: 2 Error in authenticating user.
exception.description: Error in authenticating and creating a workflow
context for user<workflowname>.
exception.fix: Verify that the user credentials and identity service
configurations are correct.



There is no failure (in most cases, see below for details).
The problem is that despite the user is found on the first provider, the libOVD is still queries the second provider. That is, the adapters_os.xml (as well as WLS config.xml ) has 2 adapters: WLS internal LDAP and <AD>.
Most of the operations are performed using the WLS internal LDAP, so it's configured to be the first one.
In this scenario the user is found on the WLS internal LDAP, but then we can see that the libOVD still goes to the <AD>.
The behavior has 2 implications:
The calls are slower because of the unnecessary request to the corporate LDAP after the user has been found on the internal LDAP . - Once in a while the request to the corporate LDAP fails with the above error

The goal here is to ensure that if the user is found on the 1st provider adapter, we should avoid the call to the 2nd provider.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.