mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Enable Retro Changelog and Content Synchronization DS plugins
Enable Retro Changelog and Content Synchronization DS plugins which are required for SyncRepl support. Create a working directory /var/named/ipa required by bind-dyndb-ldap v4+. https://fedorahosted.org/freeipa/ticket/3967
This commit is contained in:
committed by
Petr Viktorin
parent
3e1386a57e
commit
689382dc83
@@ -1079,6 +1079,10 @@ def main():
|
||||
setup_firefox_extension(fstore)
|
||||
add_ca_dns_records()
|
||||
|
||||
bind = bindinstance.BindInstance(fstore)
|
||||
if bind.is_configured():
|
||||
bind.create_dir('/var/named/ipa', 0700)
|
||||
|
||||
# Any of the following functions returns True iff the named.conf file
|
||||
# has been altered
|
||||
named_conf_changes = (
|
||||
@@ -1092,7 +1096,6 @@ def main():
|
||||
if any(named_conf_changes):
|
||||
# configuration has changed, restart the name server
|
||||
root_logger.info('Changes to named.conf have been made, restart named')
|
||||
bind = bindinstance.BindInstance(fstore)
|
||||
try:
|
||||
bind.restart()
|
||||
except ipautil.CalledProcessError, e:
|
||||
|
||||
9
install/updates/20-syncrepl.update
Normal file
9
install/updates/20-syncrepl.update
Normal file
@@ -0,0 +1,9 @@
|
||||
# Enable Retro changelog
|
||||
dn: cn=Retro Changelog Plugin,cn=plugins,cn=config
|
||||
only:nsslapd-pluginEnabled: on
|
||||
add:nsslapd-attribute: nsuniqueid:targetUniqueId
|
||||
add:nsslapd-changelogmaxage: 2d
|
||||
|
||||
# Enable SyncRepl
|
||||
dn: cn=Content Synchronization,cn=plugins,cn=config
|
||||
only:nsslapd-pluginEnabled: on
|
||||
@@ -14,6 +14,7 @@ app_DATA = \
|
||||
20-indices.update \
|
||||
20-nss_ldap.update \
|
||||
20-replication.update \
|
||||
20-syncrepl.update \
|
||||
20-user_private_groups.update \
|
||||
20-winsync_index.update \
|
||||
21-replicas_container.update \
|
||||
|
||||
Reference in New Issue
Block a user