From owner-freebsd-questions@FreeBSD.ORG Fri Sep 18 15:44:38 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25F22106566C for ; Fri, 18 Sep 2009 15:44:38 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id E8FC68FC13 for ; Fri, 18 Sep 2009 15:44:37 +0000 (UTC) Received: from localhost (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id D9780EBC0A; Fri, 18 Sep 2009 11:44:36 -0400 (EDT) Date: Fri, 18 Sep 2009 11:44:34 -0400 From: Bill Moran To: FreeBSD admin Message-Id: <20090918114434.63ea0091.wmoran@potentialtech.com> In-Reply-To: <25510735.post@talk.nabble.com> References: <49A4180C.9060209@webanoide.org> <49A66DEA.7080607@fechner.net> <25510735.post@talk.nabble.com> Organization: Bill Moran X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.5; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: PHP5 and ldap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2009 15:44:38 -0000 In response to FreeBSD admin : > > 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/