if (!extension_loaded('ldap')) {
/**
* @see Zend_Ldap_Exception
*/
require_once 'Zend/Ldap/Exception.php';
throw new Zend_Ldap_Exception(null, 'LDAP extension not loaded',
Zend_Ldap_Exception::LDAP_X_EXTENSION_NOT_LOADED);
}
in the constructor... Hard to say, what the problem is - but are you sure that the PHP interpreter running your sample script is the same interpreter that's running your other Zend_Ldap code?
Best regards
Stefan
Am 13.11.2010 um 15:29 schrieb rollockg:
>
> I am trying to authenticate via LDAP. I am getting the message "0x7002: LDAP
> extension not loaded". I have checked everything and compared it to other
> servers where I am successfully using LDAP. Everything appears the same.
>
> I decided to create a simple php script like below, utilizing the code from
> /Zend/Ldap.php:
>
> <?php
>
> if (!extension_loaded('ldap')) {
> echo 'LDAP Extension not loaded!';
> } else {
> echo 'Good to go!';
> }
> ?>
>
> I ran this script on the other servers from which I can successfully
> authenticate via LDAP, and then on the server that I'm getting the "not
> loaded" message on.
>
> On all of them I am getting the "Good to go!" message from my script.
>
> So my question is, why is my little test script returning a "Good" on
> finding the extension, but the Framework is not? What am I missing? Is there
> something else I can check? This is Framework 1.9.6.
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/Ldap-extension-not-loaded-tp3041379p3041379.html
> Sent from the Zend Auth mailing list archive at Nabble.com.
没有评论:
发表评论