|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-09 01:44 UTC] venaas@php.net
[2002-09-09 05:03 UTC] sniper@php.net
[2002-09-09 09:31 UTC] mose at ns dot cune dot edu
[2002-09-09 09:34 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
imap-2002.RC5 Apache 2.0.40 mysql 3.23.49 openldap 2.1.4 configure --with-apxs2=/local/apache/bin/apxs --enable-force-cgi-redirect --disable-cli --with-imap=/home/mose/imap-2002.RC5 --with-ldap --with-mysql=/local/mysql It appears that since version 2.1.3 of openldap, it requires that the LDAP version be set to 3 when making a connection. The php routines do not set the version. The following lines inserted in ext/ldap/ldap.c in the function ldap_connect() seem to work for me. int version; and then inside #ifdef LDAP_API_FEATURE_X_OPENLDAP ldap = ldap_init(host, port); } version = LDAP_VERSION3; (void)ldap_set_option (ldap, LDAP_OPT_PROTOCOL_VERSION, &version); #else Everyone should probably be using version 3. However, you may want to allow the version to be specified at configuration time or allow the version to be specified in php with the ldap_connect() call, with a default of version 3.