python-ldap and updateref
Jens Vagelpohl
jens at zope.com
Tue Dec 24 16:02:46 CET 2002
for one of my python-ldap-based applications i am trying to make it
behave correctly in a situation where it is talking to a slave that
wants to defer to a master for certain updates.
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.
however, it doesn't seem to work, at least from python-ldap. i can
modify records on the slave all day long and it does not hand back the
master's URI. at the python prompt, after binding with a suitable DN i
also do...
conn.set_option(ldap.OPT_DEREF, ldap.DEREF_ALWAYS)
but this does not seem to make a change.
does anyone have this working with python-ldap? is my slave server
configured incorrectly?
jens
More information about the python-ldap
mailing list