mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 22:50:12 -05:00
Register entry points of Custodia plugins
With setuptools in place FreeIPA is able to register its Custodia plugins. Custodia 0.1 ignores the plugins directives. Custodia 0.2 uses the entry points to discover plugins. https://fedorahosted.org/freeipa/ticket/6492 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
1 parent
9fbd29cc10
commit
9102fb3b02
2 files changed
+13
-1
No files matched your search
@@ -217,7 +217,7 @@ NAME_DB_MAP = {
|
||||
}
|
||||
|
||||
|
||||
class iSecStore(CSStore):
|
||||
class IPASecStore(CSStore):
|
||||
|
||||
def __init__(self, config=None):
|
||||
self.config = config
|
||||
@@ -255,3 +255,7 @@ class iSecStore(CSStore):
|
||||
|
||||
def span(self, key):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
# backwards compatibility with FreeIPA 4.3 and 4.4.
|
||||
iSecStore = IPASecStore
|
||||
@@ -61,4 +61,12 @@ if __name__ == '__main__':
|
||||
extras_require={
|
||||
":python_version<'3'": ["enum34"],
|
||||
},
|
||||
entry_points={
|
||||
'custodia.authorizers': [
|
||||
'IPAKEMKeys = ipapython.secrets.kem:IPAKEMKeys',
|
||||
],
|
||||
'custodia.stores': [
|
||||
'IPASecStore = ipapython.secrets.store:IPASecStore',
|
||||
],
|
||||
},
|
||||
)
|
||||
Reference in new issue
Block a user