Esempio n. 1
0
def sasl_map_create(inst, basedn, log, args):
    kwargs = _get_attributes(args, SaslMapping._must_attributes)
    if kwargs['nssaslmappriority'] == '':
        kwargs['nssaslmappriority'] = '100'  # Default
    _generic_create(inst, basedn, log.getChild('sasl_map_create'), MANY,
                    kwargs, args)
Esempio n. 2
0
def backend_create(inst, basedn, log, args):
    args.json = True
    kwargs = _get_attributes(args, Backend._must_attributes)
    _generic_create(inst, basedn, log.getChild('backend_create'), MANY, kwargs,
                    args)
Esempio n. 3
0
def create(inst, basedn, log, args):
    kwargs = _get_attributes(args.extra, MUST_ATTRIBUTES)
    _generic_create(inst, basedn, log.getChild('_generic_create'), MANY,
                    kwargs)
Esempio n. 4
0
def create_nested(inst, basedn, log, args):
    kwargs = _get_attributes(args, MUST_ATTRIBUTES_NESTED)
    _generic_create(inst, basedn, log.getChild('_generic_create'), NestedRoles,
                    kwargs, args)
Esempio n. 5
0
def create_filtered(inst, basedn, log, args):
    kwargs = _get_attributes(args, MUST_ATTRIBUTES)
    _generic_create(inst, basedn, log.getChild('_generic_create'),
                    FilteredRoles, kwargs, args)
def create(inst, basedn, log, args):
    kwargs = _get_attributes(args, SINGULAR._must_attributes)
    _generic_create(inst, basedn, log.getChild('_generic_create'), MANY,
                    kwargs)
Esempio n. 7
0
def backend_create(inst, basedn, log, args):
    kwargs = _get_attributes(args.extra, SINGULAR._must_attributes)
    _generic_create(inst, basedn, log.getChild('backend_create'), MANY, kwargs)