def mep_config_edit(inst, basedn, log, args): log = log.getChild('mep_config_edit') plugin = ManagedEntriesPlugin(inst) config_area = plugin.get_attr_val_utf8_l('nsslapd-pluginConfigArea') configs = MEPConfigs(inst, config_area) config = configs.get(args.NAME) generic_object_edit(config, log, args, arg_to_attr_config)
def accountpolicy_edit_config(inst, basedn, log, args): log = log.getChild('accountpolicy_edit_config') targetdn = args.DN if not ldap.dn.is_dn(targetdn): raise ValueError("Specified DN is not a valid DN") config = AccountPolicyConfig(inst, targetdn) generic_object_edit(config, log, args, arg_to_attr_config)
def mep_template_edit(inst, basedn, log, args): log = log.getChild('mep_template_edit') targetdn = args.DN if not ldap.dn.is_dn(targetdn): raise ValueError("Specified DN is not a valid DN") template = MEPTemplate(inst, targetdn) generic_object_edit(template, log, args, arg_to_attr_template)
def regex_edit(inst, basedn, log, args): log = log.getChild('regex_edit') definitions = AutoMembershipDefinitions(inst) definition = definitions.get(args.DEFNAME) regexes = AutoMembershipRegexRules(inst, definition.dn) regex = regexes.get(args.REGEXNAME) generic_object_edit(regex, log, args, arg_to_attr_regex)
def plugin_edit(inst, basedn, log, args): log = log.getChild('plugin_edit') rdn = _get_arg(args.selector, msg="Enter %s to retrieve" % RDN) plugins = Plugins(inst) plugin = plugins.get(rdn) generic_object_edit(plugin, log, args, arg_to_attr)
def dna_edit(inst, basedn, log, args): log = log.getChild('dna_edit') configs = DNAPluginConfigs(inst) config = configs.get(args.NAME) generic_object_edit(config, log, args, arg_to_attr)
def dna_config_edit(inst, basedn, log, args): log = log.getChild('dna_config_edit') targetdn = _get_shared_config_dn(inst, args) shared_config = DNAPluginSharedConfig(inst, targetdn) generic_object_edit(shared_config, log, args, arg_to_attr_config)
def referint_edit_config(inst, basedn, log, args): log = log.getChild('referint_edit_config') targetdn = args.DN config = ReferentialIntegrityConfig(inst, targetdn) generic_object_edit(config, log, args, arg_to_attr)
def referint_edit(inst, basedn, log, args): log = log.getChild('referint_edit') plugin = ReferentialIntegrityPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def memberof_edit_config(inst, basedn, log, args): log = log.getChild('memberof_edit_config') targetdn = args.DN config = MemberOfSharedConfig(inst, targetdn) generic_object_edit(config, log, args, arg_to_attr)
def winsync_edit(inst, basedn, log, args): log = log.getChild('winsync_edit') plugin = POSIXWinsyncPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def attruniq_edit(inst, basedn, log, args): log = log.getChild('attruniq_edit') plugins = AttributeUniquenessPlugins(inst) plugin = plugins.get(args.NAME) generic_object_edit(plugin, log, args, arg_to_attr)
def accountpolicy_edit(inst, basedn, log, args): log = log.getChild('accountpolicy_edit') plugin = AccountPolicyPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def mep_edit(inst, basedn, log, args): log = log.getChild('mep_edit') plugin = ManagedEntriesPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def retrochangelog_edit(inst, basedn, log, args): log = log.getChild('retrochangelog_edit') plugin = RetroChangelogPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def definition_edit(inst, basedn, log, args): log = log.getChild('definition_edit') definitions = AutoMembershipDefinitions(inst) definition = definitions.get(args.DEFNAME) generic_object_edit(definition, log, args, arg_to_attr_definition)
def rootdn_edit(inst, basedn, log, args): log = log.getChild('rootdn_edit') validate_args(args) plugin = RootDNAccessControlPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def pam_pta_edit(inst, basedn, log, args): log = log.getChild('pam_pta_edit') configs = PAMPassThroughAuthConfigs(inst) config = configs.get(args.NAME) generic_object_edit(config, log, args, arg_to_attr_pam)
def memberof_edit(inst, basedn, log, args): log = log.getChild('memberof_edit') plugin = MemberOfPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)
def linkedattr_edit(inst, basedn, log, args): log = log.getChild('linkedattr_edit') configs = LinkedAttributesConfigs(inst) config = configs.get(args.NAME) generic_object_edit(config, log, args, arg_to_attr)
def contentsync_edit(inst, basedn, log, args): log = log.getChild('contentsync_edit') plugin = ContentSyncPlugin(inst) generic_object_edit(plugin, log, args, arg_to_attr)