How To install LDAP Hook for GS4.2 and FS2.0

How To install LDAP Hook for GS4.2 and FS2.0

book

Article ID: KB0086674

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
Steps to Install LDAP Hook for GS4.2 and FS2.0

LDAP hooks settings on director and broker:

   1. Compile the LDAP hook code and create a jar file.
   2. Stop the director and broker.
   3. Deploy it in the following directory:
      %GS_Manager_root%webappsliveclusterWEB-INFlib
   4. Deploy the LDAPHook.xml to the following directories:
      %GS_Manager_root%\webapps\livecluster\WEB-INF\hooks\Broker
      %GS_Manager_root%\webapps\livecluster\WEB-INF\hooks\Director
   5. Deploy the LDAPHook.xml to the following directories, If you are using alternate base directories:
      %DS_BASEDIR%\WEB-INF\hooks\Broker
      %DS_BASEDIR%\WEB-INF\hooks\Director
   6. Start the director and broker.

Notes:

   1. Most seen error code returned by the LDAP:
      [LDAP: error code 32 - No Such Object]; remaining name 'dc=datasynapse,dc=com':
      this error means that you did not configure the searchBase and/or the searchField values in your xml file correctly
      e.g.:&ltproperty n="searchBase" v="dc=datasynapse,dc=com"/>
      &ltproperty n="searchField" v="cn"/>
      [LDAP: error code 49 - Invalid Credentials]
      this error means that you did not enter the right password or that the password is corrupted in the LDAP.
   2. To encrypt the password use the following command:
      java -cp LdapUserAuthHook.jar EncryptPassword %1

Example of the LDAPHook.xml:

&ltLdapUserAuthHook c="LdapUserAuthHook" n="0">
    &ltproperty n="name" v="LDAP Authentication"/>
    &ltproperty n="description" v="Uses LDAP to authenticate (but not authorize) users"/>
    &ltproperty n="enabled" v="True"/>
    &ltproperty n="searchBase" v="dc=datasynapse,dc=com"/>
    &ltproperty n="searchField" v="cn"/>
    &ltproperty n="url" v="ldap://192.168.32.140"/>
    &ltproperty n="ssl" v="false" />
    &ltproperty n="adminId" v="cn=Manager,dc=datasynapse,dc=com"/>
    &ltproperty n="encryptedAdminPassword" v="X9f74uxdyas=" />
</LdapUserAuthHook>

Issue/Introduction

How To install LDAP Hook for GS4.2 and FS2.0