mcavage/node-ldapjs — Issue #56: client modify missing some  behaviors
Author: cbaker118
Created: 2012-01-31 16:42:44+00:00
State: open

Alright heres my problem. I have an attribute with multiple string values. Each string says basically "this user is associated with group X as an owner" (or member, 2 different roles). So to make a member an owner, I need to remove 1 value from the attribute, and add in another.
To make the problem interesting, we have edirectory drivers attached to the tree that event off of changes to the attribute. So if I were to remove all the values and re-add all the values minus the one I wanted to remove, our driver would try to remove the user from every group then re-add them to every group.
So what I need is a way to remove 1 value from an attribute. From the Client API's description of modify, i cannot remove just 1 value, I have to clear out the attribute completely.
From page 31 of the ldap RFC:
" delete: delete values listed from the modification attribute.
If no values are listed, or if all current values of the
attribute are listed, the entire attribute is removed.
"
it looks like it should take an array of values to delete.