modify_s
Michael Ströder
michael at stroeder.com
Sun Dec 31 13:07:06 CET 2006
Vitaliyi wrote:
> I found out that ldap.modify_s behaves strangely, at least from my
> point of view:
>
> l.modify_s(dn,[(ldap.MOD_REPLACE,'someAttr',str(whatever))])
> will drop attribute,
You SHOULD NOT use this form because attributes are most times supposed
to be multi-valued.
> but with list ([str(whatever)]), parameter do as expected.
You SHOULD implement it with list.
It was a bad design decision to even accept strings.
Ciao, Michael.
More information about the python-ldap
mailing list