Bug #61450 [Opn]: oci8, open ldap not working
| From: | sixd@php.net | Date: | Sat, 24 Mar 2012 01:56:07 +0000 |
| Subject: | Bug #61450 [Opn]: oci8, open ldap not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168786@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61450&edit=1
ID: 61450
Updated by: sixd@php.net
Reported by: pratheeshrajan18 at gmail dot com
Summary: oci8, open ldap not working
Status: Open
Type: Bug
Package: LDAP related
Operating System: Linux
PHP Version: trunk-SVN-2012-03-20 (SVN)
Block user comment: N
Private report: N
New Comment:
The best solution is to build PHP without OCI8, and then build OCI8 as a shared
extension.
There are hack solutions that may or may not work like editing Makefile,
changing INCLUDES to remove the -I Oracle include directory, and adding that -I
option explicitly to every oci8*.c file.
Also see the patch https://github.com/cjbj/php-
src/commit/68b1abcd789711586c481feb12b985e5807ebeaa
Previous Comments:
------------------------------------------------------------------------
[2012-03-20 10:14:17] pratheeshrajan18 at gmail dot com
changed to right package
------------------------------------------------------------------------
[2012-03-20 10:10:18] pratheeshrajan18 at gmail dot com
Description:
------------
ldap functionality is not working when i configure ldap and oci8 together.
I am getting "Out of memory" error while trying ldap. But, when i disabled oci8, it worked
well. Could some one help please..
My configuration looks like
'./configure' '--with-apxs2=/appl/apache3/bin/apxs'
'--with-mysql=/appl/mysql/' '--with-zlib' '--prefix=/appl/php5.2.9'
'--enable-sockets' '--with-ldap'
'--with-oci8=instantclient,/usr/lib/oracle/11.1/client64/lib/'
'--enable-mbstring' '--with-mysqli' '--with-xmlrpc'
'--with-libxml-dir' '--with-openssl' '--with-pcre-dir'
'--with-pspell' '--enable-soap' '--with-xmlrpc'
'--with-curl' '--enable-exif' '--with-gd'
I tried changing the order of ldap and oci8 in the config, that also didn't work for me.
All thoughts welcome
Thanks,
Prats
Test script:
---------------
Sample code
-----------
<?php
$ldapServer = "ldap://ldap.example.com";
$ldaprdn = "my user";
$ldappass = "my pass";
$ldap_conn = ldap_connect($ldapServer);
$ldapbind =ldap_bind($ldap_conn);
if($ldapbind) {
echo "success";
} else {
echo "LDAP-Errno: " . ldap_err2str(ldap_errno($ldap_conn)) . "<br />\n";
echo "binding failed"; echo "::::";
Getting the ldap error no: 10.
Could any one have any idea ?
Thanks in advance :)
Prats.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61450&edit=1