Skip to content

Commit

Permalink
dna plugin: use global configuration for replica communication
Browse files Browse the repository at this point in the history
With 389ds/389-ds-base#6124, DNA plugin will be
able to pick up dnaRemoteBindMethod and dnaRemoteConnProtocol from the
global plugin entry and apply to all server entries automatically. We do
not need anymore to wait until the server configuration entry is created
and update it explicitly.

Related: 389ds/389-ds-base#6123

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
  • Loading branch information
abbra committed Mar 15, 2024
1 parent 557f0a5 commit 8426c47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install/share/dna.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ dn: cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config
changetype: modify
replace: nsslapd-pluginEnabled
nsslapd-pluginEnabled: on

-
add: dnaRemoteBindMethod
dnaRemoteBindMethod: SASL/GSSAPI
-
add: dnaRemoteConnProtocol
dnaRemoteConnProtocol: LDAP
5 changes: 5 additions & 0 deletions ipaserver/install/plugins/update_dna_shared_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def get_shared_cfg(self, plugin_name):
else:
logger.debug('Found DNA config %s', dna_config_base)

remote_bind_method = entry.single_value.get("dnaRemoteBindMethod")
if remote_bind_method is not None:
logger.error(
"dnaRemoteBindMethod is set on the global DNA entry already.")
return None
sharedcfgdn = entry.single_value.get("dnaSharedCfgDN")
if sharedcfgdn is not None:
sharedcfgdn = DN(sharedcfgdn)
Expand Down

0 comments on commit 8426c47

Please sign in to comment.