mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
constants: add ca_renewal container
Part of: https://pagure.io/freeipa/issue/7885 Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
c28a42e27e
commit
a3becc76dd
@ -129,6 +129,8 @@ DEFAULT_CONFIG = (
|
|||||||
('container_sysaccounts', DN(('cn', 'sysaccounts'), ('cn', 'etc'))),
|
('container_sysaccounts', DN(('cn', 'sysaccounts'), ('cn', 'etc'))),
|
||||||
('container_certmap', DN(('cn', 'certmap'))),
|
('container_certmap', DN(('cn', 'certmap'))),
|
||||||
('container_certmaprules', DN(('cn', 'certmaprules'), ('cn', 'certmap'))),
|
('container_certmaprules', DN(('cn', 'certmaprules'), ('cn', 'certmap'))),
|
||||||
|
('container_ca_renewal',
|
||||||
|
DN(('cn', 'ca_renewal'), ('cn', 'ipa'), ('cn', 'etc'))),
|
||||||
|
|
||||||
# Ports, hosts, and URIs:
|
# Ports, hosts, and URIs:
|
||||||
# Following values do not have any reasonable default.
|
# Following values do not have any reasonable default.
|
||||||
|
@ -1654,8 +1654,7 @@ def update_ca_renewal_entry(conn, nickname, cert):
|
|||||||
:param cert: python-cryptography X509Certificate
|
:param cert: python-cryptography X509Certificate
|
||||||
|
|
||||||
"""
|
"""
|
||||||
dn = DN(('cn', nickname), ('cn', 'ca_renewal'),
|
dn = DN(('cn', nickname), api.env.container_ca_renewal, api.env.basedn)
|
||||||
('cn', 'ipa'), ('cn', 'etc'), api.env.basedn)
|
|
||||||
try:
|
try:
|
||||||
entry = conn.get_entry(dn, ['usercertificate'])
|
entry = conn.get_entry(dn, ['usercertificate'])
|
||||||
entry['usercertificate'] = [cert]
|
entry['usercertificate'] = [cert]
|
||||||
|
@ -441,6 +441,7 @@ AstroidBuilder(MANAGER).string_build(textwrap.dedent(
|
|||||||
api.env.container_automember = DN()
|
api.env.container_automember = DN()
|
||||||
api.env.container_automount = DN()
|
api.env.container_automount = DN()
|
||||||
api.env.container_ca = DN()
|
api.env.container_ca = DN()
|
||||||
|
api.env.container_ca_renewal = DN()
|
||||||
api.env.container_caacl = DN()
|
api.env.container_caacl = DN()
|
||||||
api.env.container_certmap = DN()
|
api.env.container_certmap = DN()
|
||||||
api.env.container_certmaprules = DN()
|
api.env.container_certmaprules = DN()
|
||||||
|
Loading…
Reference in New Issue
Block a user