#18805 [NEW]: LDAP extension crashes with two TLS connections
| From: | spam4octan at highway dot ru | Date: | Thu, 08 Aug 2002 14:17:24 +0000 |
| Subject: | #18805 [NEW]: LDAP extension crashes with two TLS connections | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16280@lists.php.net to get a copy of this message | ||
From: spam4octan@highway.ru
Operating system: Linux Redhat
PHP version: 4.2.2
PHP Bug Type: Reproducible crash
Bug description: LDAP extension crashes with two TLS connections
Script follows (note two `ldaps://', other things work):
$ds1 = ldap_connect('ldaps://server1.domain.org');
ldap_bind($ds1, 'cn=Manger,o=org,c=RU', 'secret');
$ds2 = ldap_connect('ldaps://server2.domain.org');
ldap_bind($ds2, 'cn=Manger,o=org,c=RU', 'secret');
Configure follows:
./configure \
--without-pear \
--disable-xml \
--prefix=/opt/php4 \
--with-apxs=/opt/apaches/DSO/bin/apxs \
--with-mod_charset \
--enable-shared \
--disable-static \
--with-zlib=shared \
--with-mysql=shared,/opt/mysql \
--with-ldap=shared,/opt/ldap \
--with-imap=shared,/usr/local/src/imap-current \
--with-gd=shared,/opt/gd \
--enable-mbstring \
--enable-mbregex
I use dynamic extensions loaded in php.ini.
OpenLDAP is v2.1.3 Release.
PHP is compiled as a DSO (apxs) module for Apache 1.3.26.
The tricky thing is that TLS-specific OpenLDAP options are passed through
the environment like this:
LDAPTLS_CACERT=/etc/ca.crt \
LDAPTLS_CERT=/etc/client.crt \
LDAPTLS_KEY=/etc/client.key \
LDAPTLS_REQCERT=hard /opt/apaches/DSO/bin/httpd
That script gives me 100%-reproducible core dump.
May be it's better to pass such options by means of php.ini variables
(openldap2) ?
=cut
[ldap]
ldap.tls_cacert =
ldap.tls_cert =
ldap.tls_key =
ldap.tls_reqcert =
=cut
Thank You.
--
Edit bug report at http://bugs.php.net/?id=18805&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18805&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18805&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18805&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18805&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18805&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18805&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18805&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18805&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18805&r=globals