How to compile PHP with ldap installed on linux.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
thomas
Forum Newbie
Posts: 6
Joined: Wed May 21, 2008 3:18 pm

How to compile PHP with ldap installed on linux.

Post by thomas »

I have a suse linux system with two ldapsearch, one native to suse linux system and another one downloaded from openldap. i compiled and installed apache and php with openldap and openssl and it cannot query AD server. From the command line prompt, ldapsearch from openldap cannot query AD server but the ldapsearch native to the suse linux system can. I tried to recompile php with the native ldapsearch but the following message appear:

error: Cannot find ldap.h

i tried recompiling with
--with-ldap (without specifying the location)

and

--enable-shared
--with-ldap=shared

both of these doesn't work. Is there any other way to do this?
Post Reply