Use obfuscated password for LDAP Based User Repository in hawk webconsole

Use obfuscated password for LDAP Based User Repository in hawk webconsole

book

Article ID: KB0083575

calendar_today

Updated On:

Products Versions
TIBCO Hawk 5.1.x, 5.2.0

Description

Customer wants to use obfuscated password for LDAP Based User Repository in hawk webconsole. But as there is defect (HK-5106) , user can't set the obfuscated password in web.xml. Otherwise, you will see the exceptions:
<----------------
ERROR localhost-startStop-1 [HawkWebconsole.security] - An error occurred, while decrypting LDAP password.
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

ERROR localhost-startStop-1 [HawkWebconsole.request.filter] - Cannot get Instance of Authentication Provider.
java.lang.SecurityException: An error occurred, while decrypting LDAP password, either password not obfuscated or not valid.

ERROR localhost-startStop-1 [HawkWebconsole.security] - An error occurred, while decrypting LDAP password.java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; 
---------------->

Issue/Introduction

Use obfuscated password for LDAP Based User Repository in hawk webconsole

Environment

All supported platforms

Resolution

Replace the following two jars:
slf4j-api-1.6.4.jar 
slf4j-log4j12-1.6.4.jar
with the old one:
slf4j-api-1.5.2.jar
slf4j-log4j12-1.5.2.jar
in the following two places:
<hawk_home>\webconsole\tomcat\webapps\hawkwebconsole\WEB-INF\lib
<hawk_home>\webconsole\tomcat\lib
You can find the old jars in <hawk_home>/lib/compat.