python-ldap and updateref
Michael Ströder
michael at stroeder.com
Tue Dec 24 16:11:22 CET 2002
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