KB Article #176375

null pointer Exception while accesing TnT UI configured with "LDAP server with references"

Problem

Issue while configuring the TNT/Sentinel with the LDAP server with references, while doing so getting Null pointer exception causing the LDAP authentication to fail on TnT UI.

Resolution


The function "results.hasMore()" is throwing a Null pointer exception and causing the LDAP authentication to fail.
In LDAPUserExit.java code we have the below code:-

SearchResult result = results.next();
if (results.hasMore()) {

replacing and recompiling it by:-

SearchResult result = results.next();
if (results.hasMoreElements()) {

resolved the issue.

The package that includes this class is tnt-sentinel-1.0.0-1.jar and the location for this package is <install dir>\Tools\apache-tomcat\webapps\trackntraceserver\WEB-INF\resources\SentinelUserExit.

Note:- In most of the situations default code should work fine, this covers one exception when LDAP is configured with references.