python-ldap and updateref
Jens Vagelpohl
jens at zope.com
Tue Dec 24 16:26:06 CET 2002
michael,
i know for a fact that the referral is not handled internally, the
entry on the master never gets changed. at this point i am not entirely
sure if my slave is indeed configured correctly.
i did read in some unrelated documentation that how the referral is
handled differs based on the type of authentication you use. at this
moment i am using a simple bind.
jens
P.S.: frohe weihnachten ;)
On Tuesday, Dec 24, 2002, at 10:11 US/Eastern, Michael Ströder wrote:
> Jens Vagelpohl wrote:
>> i have done some testing by setting up a master and slave and using
>> the "updateref" directive in the slave's slapd.conf. according to the
>> OpenLDAP documentation that should cause the slave to hand back the
>> URI designated in the updateref directive if someone attempts a >> write.
>> [..]
>> conn.set_option(ldap.OPT_DEREF, ldap.DEREF_ALWAYS)
>
> This option is for setting alias dereferencing which is something
> different.
>
>> but this does not seem to make a change.
>
> Maybe the OpenLDAP lib handles the referral internally and already
> changes the entry on your master?
>
> If you don't want to let the OpenLDAP lib handle the referral you have
> to use:
>
> conn.set_option(ldap.OPT_REFERRALS,0)
>
> Ciao, Michael.
>
More information about the python-ldap
mailing list