My Oracle Support Banner

OUD12c: Using "ldapsearch" with Non-Existing BindDN Results in "AccessLogPublisher.java" Error when "log-connection-details:true" and NPE. (Doc ID 2809772.1)

Last updated on SEPTEMBER 30, 2021

Applies to:

Oracle Unified Directory - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.4.210406 version, Command Line

ACTUAL BEHAVIOR
-----------------------------
OUD ldapsearch command and access logs are returning the AccessLogPublisher.java errors when bindDN user does not exist in the directory and log-connection-details set to true.

This issue can be reproduced using the below steps.

1. Run dsconfig command to Check log-connection-details:true.

./dsconfig -h <host> -p <admin port> -n -D "<ds admin>" -j pwd.txt --trustAll get-log-publisher-prop --publisher-name "File-Based Access Logger" --advanced | grep log-connection-details : true

Property : Value(s)
------------------------:-----------------------------------------------------
log-connection-details : true

 

2. Run the ldapsearch like below binding as organizational object.

/ldapsearch -h <host> -p <port> -D cn=schema -j pwd.txt -b "" -s base "(objectclass=*)"
The simple bind attempt failed
Result Code: 80 (Other)
Additional Information: Worker Thread 17 encountered an uncaught exception
while processing operation BindOperation(connID=7, opID=0, protocol="LDAP 3,dn=cn=schema, authType=Simple): NullPointerException
(AccessLogPublisher.java:1246 TextAccessLogPublisher.java:1328
TextAccessLogPublisher.java:735 AccessLogger.java:788
BindOperationBasis.java:1171 TraditionalWorkerThread.java:166)

 

Access log has the below errors.

[10/Feb/2021:09:39:19 +0000] CONNECT conn=7 from=<IP Address>:<PORT> to=<IP address>:<PORT> protocol=LDAP
[10/Feb/2021:09:39:19 +0000] BIND REQ conn=7 op=0 msgID=1client=<IP Address>:<PORT> server=<IP Address>:<PORT> protocol=LDAP type=SIMPLE dn="cn=schema" version=3
[10/Feb/2021:09:39:19 +0000] DISCONNECT conn=7 reason="Server Error"msg="Worker Thread 17 encountered an uncaught exception while processing
operation BindOperation(connID=7, opID=0, protocol="LDAP 3, dn=cn=schema,authType=Simple): NullPointerException (AccessLogPublisher.java:1246
TextAccessLogPublisher.java:1328 TextAccessLogPublisher.java:735
AccessLogger.java:788 BindOperationBasis.java:1171
TraditionalWorkerThread.java:166)"

 

Cause

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
Symptoms
Cause
Solution
References


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