|
From: <mi...@st...> - 2005-07-20 16:00:23
|
J=E9r=F4me Wax wrote:
>=20
> Then I create an openexchange account on an ldap account,
Just curious, what project are you working on?
> mlist =3D ldap.modlist.modifyModlist(attrs, newattrs)
> self.l.modify_s(cn, mlist)
Can you please post repr(mlist)?
> attrs is the entire attributes list.
> newattrs is the modified list.
These are dictionaries, not lists!
> When I create and delete... it works.
>=20
> But if I recreate OX attributes... OpenLDAPaci already exist... but don=
't appear in attributes list and cause this:
>=20
> ldap.INAPPROPRIATE_MATCHING: {'info': 'modify/add: OpenLDAPaci: no equa=
lity matching rule', 'desc': 'Inappropriate matching'}
>=20
> How can I get OpenLDAPaci attribute to prevent this error ?
Probably you have to use ldap.MOD_REPLACE in mlist for attribute
OpenLDAPaci instead of ldap.MOD_DELETE. Not sure if usage of
ldap.modlist.modifyModlist() in every case.
But first turn on python-ldap's debugging by setting trace_level=3D2 when
calling ldap.initialize() and post the output.
Example:
l =3D ldap.initialize('ldap://localhost:1390',trace_level=3D2)
Ciao, Michael.
|