Page 1 of 1

How to compile PHP with ldap installed on linux.

Posted: Tue Nov 10, 2009 3:44 pm
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?