Simplify LDAPUpdater

- drop unused dm_password and ldapi arguments
- remove online feature that was never implemented
- allow passing of api object that is used to populate substitution
  dictionary
- simplify substitution dictionary updates
- remove unused instances vars

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Christian Heimes
2020-09-15 11:25:30 +02:00
committed by Rob Crittenden
parent 87cf2a3c78
commit 99a40cbbe9
10 changed files with 64 additions and 113 deletions

View File

@@ -673,10 +673,6 @@ class CAInstance(DogtagInstance):
self._ldap_update(
[paths.CA_TOPOLOGY_ULDIF],
basedir=None,
sub_dict={
'SUFFIX': api.env.basedn,
'FQDN': self.fqdn,
}
)
def __disable_nonce(self):
@@ -1361,13 +1357,7 @@ class CAInstance(DogtagInstance):
"Did not find any lightweight CAs; nothing to track")
def __dogtag10_migration(self):
self._ldap_update(
['50-dogtag10-migration.update'],
sub_dict={
'SUFFIX': api.env.basedn,
'FQDN': self.fqdn,
}
)
self._ldap_update(['50-dogtag10-migration.update'])
def is_crlgen_enabled(self):
"""Check if the local CA instance is generating CRL