> when I look at the /tmp/ldap.log file, I see the following:
>
> <date> DEBUG (7): Ldap: 2: someuser authentication failed: 0x20: Referral:
> (uid=someuser)
>
> Is there some way to have Zend_Auth_Adapter_Ldap follow the Referral?
>
> I have tried the following with no success:
>
> $adapter = new Zend_Auth_Adapter_Ldap($options, $username, $password);
> ldap_set_options($adapter->getLdap()->getResource(), LDAP_OPT_REFERRALS, 1);
> $result = $auth->authenicate($adapter)
That won't work since LDAP_OPT_REFERRALS is unconditionally turned off
in Zend_Ldap::connect() which occurs after authenticate().
Try flipping on LDAP_OPT_REFERRALS in Zend/Ldap.php around line 631.
If it works, please create a tracker issue requesting that the
referrals option be made optional and I'll create a proper patch.
Mike
--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
没有评论:
发表评论