Solutions

Reporter is unable to connect to the LDAP server.

Solutions ID:    KB3394
Version:    5.0
Status:    Published
Published date:    09/11/2009
Updated:    03/31/2011
 

Problem Description

The connection to the LDAP server fails when using Linux 64 bit Reporter.  

When the test button is used, for  the LDAP realm  connection wizard,  they get the error: "A connection could not be made to the host server”

Resolution

 in reviewing the Journal files that Reporter is unable to locate libldap.so “Failed to locate LDAP library 'libldap.so'”.

 On the LINUX server, running reporter, we ran  the “find” command - # find / -name libldap* - and could not see the file libldap.so,  but we could see the file  libldap-2.3.so.

Here's the results of the FIND.:

/usr/lib64/libldap_r-2.2.so.7
/usr/lib64/libldap_r-2.2.so.7.0.6
/usr/lib64/libldap-2.2.so.7
/usr/lib64/libldap-2.2.so.7.0.6

There was also  some in the powerbroker directories

/usr/lib/symark/pb/libldap-2.3.so.0.2.12
/usr/lib/symark/pb/libldap-2.3.so.0
/usr/lib/symark/pb/libldap-2.3.so
/opt/pblogd/powerbroker/v5.2/pbx86_64_linuxA-5.2.0-11/lib/libldap-2.3.so
.0.2.12

Linux version information:
Red Hat Enterprise Linux ES release 4 (Nahant Update 7)
64 bit

 

Details of this RPM:

Using this RPM command we see this detail.

rpm -qfi /usr/lib/libldap.so

Name        : openldap-devel               Relocations: (not relocatable)
Version     : 2.3.34                            Vendor: Fedora Project
Release     : 7.fc7                         Build Date: Fri 08 Feb 2008 06:14:46 AM PST
Install Date: Thu 27 Mar 2008 11:56:19 AM PDT      Build Host: xenbuilder4.fedora.phx.redhat.com
Group       : Development/Libraries         Source RPM: openldap-2.3.34-7.fc7.src.rpm
Size        : 5922338                          License: OpenLDAP
Signature   : DSA/SHA1, Tue 12 Feb 2008 10:19:19 AM PST, Key ID b44269d04f2a6fd2
Packager    : Fedora Project
URL         : http://www.openldap.org/
Summary     : OpenLDAP development libraries and header files.
Description :
The openldap-devel package includes the development libraries and
header files needed for compiling applications that use LDAP
(Lightweight Directory Access Protocol) internals. LDAP is a set of
protocols for enabling directory services over the Internet. Install
this package only if you plan to develop or will need to compile
customized LDAP clients.

 

Suggested Resolution:

Upgrade the  RPM version for this library.

Check to see if the libldap.so is a 32, or 64 bit version of the file. If it is a 32 bit, and the host is 64 bit, we'll need to rename it, then find and place the right  file here.   Follow these steps to do rename it. 

  • # file /usr/lib/libldap.so
  • # mv /usr/lib/libldap.so   /usr/lib/libldap.old

As we don't need a specific version of this file, we recomend that you create a symbolic link to the right file, as per this command:

  •  # cd /usr/lib
  • # ln -s /usr/lib64/libldap-2.2.so.7 libldap.so

 NOTE for the Geeks amongst us:

Question:  What is exact description of what file it needs  ,and where it needs  to see it, so the Reporter LDAP service/daemon can operate properly?

Reporter will search for the library in the following order:

  • A colon-separated list of directories in the user's LD_LIBRARY_PATH environment variable.
  • The list of libraries specified in /etc/ld.so.cache (which is generated from /etc/ld.so.conf).
  •  /lib, followed by /usr/lib

NOTE2: For detailed information on how to setup LDAP with Reporter, see  KB3353


Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
 
 
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.
 
 

Your response will be used to improve our document content.

Ask a Question