ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#44937 [NEW]: Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out of mem
by Aalvarez At N2bsolutions Dot Com other posts by this author
May 7 2008 11:49AM messages near this date
Re: [PHP-DEV] snaps scripts | #44937 [Asn]: Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out of mem
From:             aalvarez at n2bsolutions dot com
Operating system: Ubuntu 7.10
PHP version:      5.2.6
PHP Bug Type:     LDAP related
Bug description:  Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out o
f mem

Description:
------------
I have Apache2.2.6 running php5.2.6 with support for:

CFLAGS=' -O3 -I/usr/src/instantclient_11_1/sdk/include -I/usr/lib32
-I/usr/include -I/usr/include/sasl' CXXFLAGS='-I/usr/src/instantclient_11_1/sdk/include -I/u
sr/lib32
-I/usr/include -I/usr/include/sasl' './configure' '--includedir=/usr/src/instantclient_11_1/
sdk/include' '--includedir=/usr/src/instantclient_11_1/sdk' '--with-oci8=/usr/src/instantcli
ent_11_1/' '--with-jpge' '--with-jpeg-dir' '--with-pgsql' '--with-gd' '--with-png-dir' '--wi
th-zlib-dir' '--with-apxs2=/usr/local/apache226/bin/apxs' '--with-openssl' '--with-openssl' 
'--with-tiff' '--without-pdo-oci' '--enable-sigchild' '--enable-soap' '--enable-ftp' '--with
-curl' '--with-curlwrappers' '--with-ldap' '--with-ldap-sasl'
"$@"

I know where is the problem but i don�t know how to fix it...

When i change ennvars like that disabling Oracle oci8 lib
all works perfectly :-/

LD_LIBRARY_PATH="/usr/local/apache226/lib:/usr/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
export ORACLE_HOME=/usr/src/instantclient_11_1
#export TNS_ADMIN=$ORACLE_HOME/network/admin
#export TWO_TASK=$ORACLE_HOME/network/admin/tnsnames.ora
export ORACLE_SID=XE
export
LD_PRELOAD=/usr/lib/libldap.so:/usr/lib/libldap_r.so:/usr/lib/sasl2/libldapdb.so:/usr/lib32/
libldap.so.2:
#$ORACLE_HOME/lib/libclntsh.so
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252

It doesn�t matter if i load first the libldap.so ....

Any Ideas?
Thxs a lots


Reproduce code:
---------------
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out
of memory in /home/www/web1/web/ss_dev/__fvalida.php


Expected result:
----------------
Ok if the user have valid password in may OpenLDAP 2.2.3 server
it works without oracle LD_PRELOAD but ... i need it too :-(




-- 
Edit bug report at http://bugs.php.net/?id=44937&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44937&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44937&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44937&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44937&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=44937&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44937&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44937&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44937&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44937&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44937&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=44937&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=44937&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44937&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44937&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44937&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44937&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44937&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44937&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44937&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44937&r=mysqlcfg
Thread:
Aalvarez At N2bsolutions Dot Com
Aalvarez At N2bsolutions Dot Com
jani

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved