Sorry about that. I looked at php.net forum also without any success. The reason I posted at this forum is it worked fine with prev version of openldap and failed in the latest release. I am thinking that I might have missed something (thoroughly checked ./configure --help) while compiling openldap and thought someone might point it out. Anyways sorry about that.
Please take this discussion to an appropriate forum.
This list openldap-software@OpenLDAP.org is not dedicated for discussing PHP
programming issues nor is the LDAP module for PHP part of the OpenLDAP project.
Please have a look on http://www.php.net/ldap