Resolves: bug 450989
Bug Description: The memberOf plug-in is currently hardcoded to use
the "member" and "memberOf" attributes for group membership. These
attributes should be configurable.
Reviewed by: ???
Files: see diff
Fix Description: The fix allows these attributes to be configured in the
configuration entry. The configuration can be dynamically changed
with the server running. We ensure that the configuration doesn't
a memberOf operation is in progress by obtaining the memberOf lock
changes are applied. I also made the filter that is used to check if
membership change is made a part of the configuration struct since it
off of one of the configurable attributes.
In addition to the above changes, I removed an unnecessary function
wrapping slapi_str2filter(). The previous code was doing a malloc of
string, needlessly duplicating the string, then creating the
does a malloc as well). The two copies of the filter string were then
free'd. This was inefficient, so I removed the wrapper function so
simply malloc the filter string and pass it to slapi_str2filter() to
the Slapi_Filter. This saves us one malloc/free.
Platforms tested: F9 i386
Flag Day: No.
Doc impact: Yes, the config attributes will need to be doc'd.