Re: PHP/LDAP Setup Problem

From: Date: Wed, 26 Apr 2006 06:05:41 +0000
Subject: Re: PHP/LDAP Setup Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234771@lists.php.net to get a copy of this message
Crone, James wrote:
I need to add LDAP support to my install of PHP. I had my sysadmin download OpenLDAP and install the libraries. This isn't correct way. You need these libraries but they are not enough.
[snip] I've been told to use the dl() function Read carefully. http://php.net/dl says
dl -- Loads a PHP extension at runtime Note *PHP extension*. You cannot use LDAP libraries directly.
PHP Warning: dl(): Invalid library (maybe not a PHP library) 'libldap.so' in ..... What am I doing wrong? Thanks in advance. You are loading ldap library directly which provide C interface to ldap functions. You need PHP interface (which is what provided by PHP extension). It need to be compiled in PHP.
Read more about extensions: http://www.zend.com/php/internals/extension-writing1.php#Heading2 -- Sameer N. Ingole Blog: http://weblogic.noroot.org/ --- Better to light one candle than to curse the darkness.

« previous php.general (#234771) next »