1. Use rpm or dpkg to check if you have them installed. For eg:

# rpm -qa | grep ldap
openldap-clients-2.3.43-12.el5_5.2
openldap-devel-2.3.43-12.el5_5.2
openldap-2.3.43-12.el5_5.2
openldap-servers-2.3.43-12.el5_5.2

for Debian/Ubuntu use dpkg for example:

# dpkg -l | grep ldap

If nothing comes up you need to install the ldap packages available to your
distro like openldap-clients and openldap-devel. If you need to run LDAP
server then install openldap-servers package too. Note that the package
names differ from distro to distro.

2. This is what I use to compile apache with LDAP support
--with-ldap=ldap --with-ldap-lib=/usr/lib64
--with-ldap-include=/usr/include --enable-ldap  --enable-authnz-ldap

adjust the paths according to your installation. To find the paths on your
installation run something like this:

# rpm -ql openldap-clients
OR
# dpkg -s <package-name-here>

I have only RedHat available at the moment so can't provide dpkg outputs.
Also the example is given assuming the LDAP of your choice is OpenLDAP.

Igor


On Tue, Jan 24, 2012 at 9:53 AM, Satya Samala <ssam...@us.ibm.com> wrote:

> Thanks Eric for the quick response.  I didn't find anything on this in the
> config.log.
> 1.  How to do verify if my server has this library? Any commands to verify
> it?
> 2.  And how do I tell Apache to find this Ldap library, if it exists on my
> server.
>
> Regards
> SS
>
>
>  From: Eric Covener <cove...@gmail.com> To: users@httpd.apache.org Date: 
> 01/23/2012
> 04:31 PM Subject: Re: [users@httpd] ldap & authnz_ldap modules
> ------------------------------
>
>
>
> On Mon, Jan 23, 2012 at 5:27 PM, Satya Samala <ssam...@us.ibm.com> wrote:
> >
> > Hi
> >
> > I'm trying to configure these two modules mod_ldap and mod_authnz_ldap
> and I noticed the below error. I did check on google & other forums but
> couldn't find any solution to this.
> >
> > ./configure --prefix=/opt/Apache_lb01 --with-ldap --with-included-apr
>  --enable-so --enable-mods-shared="all ldap authnz_ldap " --with-mpm=worker
> >
> > Error:
> > configure: error: could not find an LDAP library
> > configure failed for srclib/apr-util
>
> You need an LDAP client library and corresponding -dev headers.
> apr-util's config.log will show you what autoconf tests are going on
> to try to find one.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>
>
>

Reply via email to