From: Christoph Haas <email@ch...> - 2003-02-16 23:53:09
This posting is dealing with a topic which Todd Rosenberry brought up
two weeks ago. He was asking why the delete method of Net::LDAP::Entry
can only act on attributes and not specific values.
I struggled with this problem for two days. Finally I went mano-a-mano
with the spaghetti sources and found out that the delete method can do
more than specified in the man page. What I am doing is group based
authorisation based on LDAP groups. These groups are "groupOfNames"
objects which contain all the users in that group as "member"
attributes. That means that there is not only a single (unique)
attribute but many. What I needed is to remove a single user from the
member attribute list.
To cut it short: this is how I did it:
Joseph Kezar posted a reply on this topic and was completely right. If
you specify a reference to an array like above then the ->delete method
treats the deletion completely different and in the end does a modify to
remove this value.
Suggestion: Please correct the man page because it only says that the
syntax is "delete ( [ ATTR [, ATTR2 ... ]] )" which is not complete!
Thanks for reading.
".signature" [Modified] 3 lines --100%-- 3,41 All