|
From: Jacek K. <ja...@bn...> - 2001-11-14 17:16:31
|
On Wed, Nov 14, 2001 at 05:34:05PM +0100, Michael Str=F6der wrote:
> Jacek Konieczny wrote:
> >=20
> > Log message:
> > - setattr() removed, getattr() made minimal
>=20
> Can you shortly describe what this exactly means now? I lost track
> of what get_options()/set_options() is used for at the moment.
It is used for everything that ldap_set_option() in C API is used for.
It replaces some attributes of LDAPObject, which have been removed.
Sou you should use now:
l.set_option(ldap.OPT_PROTOCOL_VERSION,3)
instead of
l.version=3D3
l.set_option(ldap.OPT_DEREF,1)
instead of
l.deref=3D1
l.set_option(ldap.OPT_REFERRALS,1)
instead of
l.referrals=3D3
l.set_option(ldap.OPT_RESTART,1)
instead of
l.restart=3D1
l.set_option(ldap.OPT_TIMELIMIT,10)
instead of
l.timelimit=3D10
l.set_option(ldap.OPT_SIZELIMIT,100)
instead of
l.sizelimit=3D100
The same about reading the attribute and l.get_option().
Additionaly:
l.get_option(ldap.OPT_ERROR_NUMBER)
instead of
l.errno
l.get_option(ldap.OPT_ERROR_STRING)
instead of
l.error
l.get_option(ldap.OPT_MATCHED_DN)
instead of
l.matched
I don't know what some of them do, but this are attributes I have
removed.
> How about you completing/updating the new example script
> Demo/initialize.py ? You can commit the few lines without testing
> and I will test it against my locally installed OpenLDAP 2 server.
I have done this before I got this mail :-)
Greets,
Jacek
|