Date: Fri, 18 Sep 2009 11:44:34 -0400 From: Bill Moran <wmoran@potentialtech.com> To: FreeBSD admin <alligator424@free.fr> Cc: freebsd-questions@freebsd.org Subject: Re: PHP5 and ldap Message-ID: <20090918114434.63ea0091.wmoran@potentialtech.com> In-Reply-To: <25510735.post@talk.nabble.com> References: <Pine.GSO.4.63.0902241611330.24655@hmacs.cmi.ua.ac.be> <op.upu3n3lvflcvyi@da1-desktop-x64> <Pine.GSO.4.63.0902241636020.22233@hmacs.cmi.ua.ac.be> <49A4180C.9060209@webanoide.org> <Pine.GSO.4.63.0902260946580.18744@hmacs.cmi.ua.ac.be> <49A66DEA.7080607@fechner.net> <Pine.GSO.4.63.0902261310250.24414@hmacs.cmi.ua.ac.be> <25510735.post@talk.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to FreeBSD admin <alligator424@free.fr>: > > Hi folks, I don't know how to enable ldap for php5 on my Freebsd 7.2 system > > this is a client only ldap system. > ldapsearch works well with tls on it. > but I try to enable roundcube ldap, and roundcube says: > > LDAP Error: No ldap support in this installation of PHP (GET > /?_task=addressbook&_action=list&_source=ldap&_page=1&_remote=1) > > here is the output of pkg_info: > pkg_info | grep ldap > openldap-client-2.4.16 Open source LDAP client implementation > php5-ldap-5.2.9 The ldap shared extension for php > > find / -name ldap.so > /usr/local/lib/php/20060613/ldap.so > > any idea? I have a couple of guesses. 1) If you installed php5-ldap from ports, you generally have to restart Apache for the running PHP to recognize that it's there. 2) Check /usr/local/etc/php/extensions.ini to ensure the .so was properly listed. I've seen cases where it's not listed correctly. You can check the output of php_info() to make sure PHP thinks it's there. Hope this helps. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090918114434.63ea0091.wmoran>