ZF-8259: Zend_Ldap->search() fails to bind if not yet bound

Issue Type: Bug Created: 2009-11-09T12:21:16.000+0000 Last Updated: 2009-11-10T02:56:29.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Michael Croes (mycroes) Assignee: Stefan Gehrig (sgehrig) Tags: - Zend_Ldap

Related issues: Attachments:


When using Zend_Ldap->search() without explicitly binding first, the search will fail because there is no ldap resource. To me it seems the logical way to fix this is to extend the getResource function with a bind (if not yet bound), because this can also eliminate the check in a lot of other places in the code, and it will ensure getResource() returns a resource or throws an exception.


Posted by Stefan Gehrig (sgehrig) on 2009-11-10T02:56:06.000+0000

fixed in trunk (r18918). Zend_Ldap::getResource() now always returns a connected and bound ext/ldap resource (given the fact that a connection can be made and a user can be bound with the given options)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.