[python-ldap] ldap.modlist.modifyModlist
Joseph L. Casale
jcasale at activenetwerx.com
Wed Nov 26 19:13:46 CET 2014
> #should replace the member name with a blank
> ldif = modlist.modifModlist(old,new)
> l.modify_s(dn,ldif)
>
> l.unbind_s()
>
>
> I have tried multiple configurations for the old/new dicts and even modlist.modifyModlist(old,new,ignore_oldexistant=1) to no avail.
> Any help would be greatly appreciated. Thanks
Not sure a replace makes sense? How does the dsa interpret an empty
attribute type which indicates a member?
You want a delete, and specify the value for that attribute type or
you will remove all occurrences.
jlc
More information about the python-ldap
mailing list