def sasl_map_list(inst, basedn, log, args): if args.details: # List SASL mappings with details mappings = SaslMappings(inst).list() result = {"type": "list", "items": []} for sasl_map in mappings: if args.json: entry = sasl_map.get_all_attrs_json() # Append decoded json object, because we are going to dump it later result['items'].append(json.loads(entry)) else: log.info(sasl_map.display()) if args.json: log.info(json.dumps(result, indent=4)) else: _generic_list(inst, basedn, log.getChild('sasl_map_list'), MANY, args)
def backend_list(inst, basedn, log, args): _generic_list(inst, basedn, log.getChild('backend_list'), MANY, args)
def plugin_list(inst, basedn, log, args): _generic_list(inst, basedn, log.getChild('plugin_list'), MANY)
def list(inst, basedn, log, args): _generic_list(inst, basedn, log.getChild('_generic_list'), MANY, args)
def list_links(inst, basedn, log, args): _generic_list(inst, basedn, log.getChild('chaining_list'), ChainingLinks, args)
def sasl_map_list(inst, basedn, log, args): _generic_list(inst, basedn, log.getChild('sasl_map_list'), MANY, args)
def backend_list(inst, basedn, log, args): _generic_list(inst, basedn, log.getChild('backend_list'), MANY)