What's the best way to replace value of attribute which can handle multiple values?

Michael Ströder michael at stroeder.com
Wed Sep 9 12:02:30 CEST 2009

Zhang Huangbin wrote:
> On Sep 9, 2009, at 4:54 PM, Michael Ströder wrote:
>>> If cn=cn2 is not exist, [(ldap.MOD_DELETE, 'cn', 'cn2')] will raise  
>>> an
>>> error.
>> Could you please post the error raised and mention with which server  
>> you're
>> testing?
>> I'd try [(ldap.MOD_DELETE, 'cn',['cn2'])]
> The same error if cn=cn2 not exist: ldap.NO_SUCH_ATTRIBUTE.

And how about the diagnostic message? I'd test the code with trace_level=2.

Ciao, Michael.

More information about the python-ldap mailing list