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.
|