2008年8月27日星期三

Re: [fw-auth] LDAP - following referrals

Hi Mike,

Your suggestion resolves the issue I am seeing. Issue ZF-4092 has
been opened as requested.

Thanks,
Mike

On Wed, Aug 27, 2008 at 12:16 PM, Michael B Allen <ioplex@gmail.com> wrote:
>
> On Wed, Aug 27, 2008 at 9:46 AM, Mike Mercier <mmercier@gmail.com> wrote:
> > 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/

没有评论: