Red Hat Bugzilla – Bug 145181
plugin target/bin subtrees only takes 1 value
Last modified: 2015-12-07 12:05:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)
Description of problem:
The plugin configuration has target_subtrees and bind_subtrees, which
are supposed to be a list of subtrees to allow the plugin to operate
on (bind_subtrees for BIND/UNBIND, target_subtrees for all other
operations). However, when getting the value from the attribute in
the plugin config entry, only the first value is retrieved e.g. it
uses slapi_entry_attr_get_charptr instead of
slapi_entry_attr_get_charray (or just iterating through the values).
The rest of the code assumes 1 or more values, so it's probably an
One other thing that may be useful would be to have both included
subtrees and excluded subtrees. For example, with the PAM plugin, you
would never want it to operate on o=NetscapeRoot and cn=config. It
would be easier to specify those subtrees to be excluded that to
specifically include all the other subtrees.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Config the plugin
DS7.2 is not a valid milestone anymore. Anything thats set to DS7.2 should be
set to DS8.0. Will make further changes per bug council on 07/24/2007, after this.
Created attachment 407690 [details]
New attributes nsslapd-exclude-targetSubtree and nsslapd-exclude-bindSubtree have been added to specify excluded subtrees. The set_plugin_config_from_entry() has been modified to read multiple subtrees. The plugin_invoke_plugin_sdn() and plugin_allow_internal_op() have been modified to check for excluded subtrees.
Author: Endi S. Dewata <firstname.lastname@example.org>
Date: Sat Apr 17 00:08:35 2010 -0500
I don't think we need this for 8.2 - it can wait for 9.0
yeah, just mark as verifiedupstream - we don't have any plugins that take advantage of this