Products | Versions |
---|---|
TIBCO DataSynapse GridServer | - |
Not Applicable | - |
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.:<property n="searchBase" v="dc=datasynapse,dc=com"/>
<property 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:
<LdapUserAuthHook c="LdapUserAuthHook" n="0">
<property n="name" v="LDAP Authentication"/>
<property n="description" v="Uses LDAP to authenticate (but not authorize) users"/>
<property n="enabled" v="True"/>
<property n="searchBase" v="dc=datasynapse,dc=com"/>
<property n="searchField" v="cn"/>
<property n="url" v="ldap://192.168.32.140"/>
<property n="ssl" v="false" />
<property n="adminId" v="cn=Manager,dc=datasynapse,dc=com"/>
<property n="encryptedAdminPassword" v="X9f74uxdyas=" />
</LdapUserAuthHook>