def smime_profile(request):
    profile_path = prepare_config(
            SMIME_PROFILE_TEMPLATE,
            dict(ipadomain=api.env.domain, iparealm=api.env.realm))

    tracker = CertprofileTracker(u'smime', store=True,
                                 desc=u"S/MIME certificate profile",
                                 profile=profile_path)

    return tracker.make_fixture(request)
Ejemplo n.º 2
0
def user_profile(request):
    name = 'caIPAserviceCert_mod'
    profile_path = prepare_config(
        CA_IPA_SERVICE_MODIFIED_TEMPLATE,
        dict(ipadomain=api.env.domain, ipacertbase=IPA_CERT_SUBJ_BASE))

    tracker = CertprofileTracker(name,
                                 store=True,
                                 desc=u'Storing copy of a profile',
                                 profile=profile_path)

    return tracker.make_fixture(request)
Ejemplo n.º 3
0
def user_profile(request):
    name = 'caIPAserviceCert_mod'
    profile_path = prepare_config(
        CA_IPA_SERVICE_MODIFIED_TEMPLATE,
        dict(
            ipadomain=api.env.domain,
            ipacertbase=IPA_CERT_SUBJ_BASE))

    tracker = CertprofileTracker(
        name, store=True, desc=u'Storing copy of a profile',
        profile=profile_path
    )

    return tracker.make_fixture(request)
Ejemplo n.º 4
0
def xmlprofile(request):
    name = u'caIPAserviceCert_xml'
    profile_path = prepare_config(
        CA_IPA_SERVICE_XML_TEMPLATE,
        dict(ipadomain=api.env.domain, ipacertbase=IPA_CERT_SUBJ_BASE))

    tracker = CertprofileTracker(name,
                                 store=True,
                                 desc=u'xml format profile',
                                 profile=profile_path)

    return tracker
Ejemplo n.º 5
0
def malformed(request):
    name = u'caIPAserviceCert_mal'
    profile_path = prepare_config(
        CA_IPA_SERVICE_MALFORMED_TEMPLATE,
        dict(ipadomain=api.env.domain, ipacertbase=IPA_CERT_SUBJ_BASE))

    tracker = CertprofileTracker(name,
                                 store=True,
                                 desc=u'malformed profile',
                                 profile=profile_path)

    # Do not return with finalizer. There should be nothing to delete
    return tracker
Ejemplo n.º 6
0
def default_profile(request):
    name = 'caIPAserviceCert'
    desc = u'Standard profile for network services'
    tracker = CertprofileTracker(name, store=True, desc=desc)
    tracker.track_create()
    return tracker
Ejemplo n.º 7
0
def default_profile(request):
    name = 'caIPAserviceCert'
    desc = u'Standard profile for network services'
    tracker = CertprofileTracker(name, store=True, desc=desc)
    tracker.track_create()
    return tracker