summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-install/ipa-server-install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-09-15 18:15:12 -0400
committerRob Crittenden <rcritten@redhat.com>2008-09-17 20:56:08 -0400
commitf736253b93bbb58000ae4ca0de63f9d6340f570a (patch)
tree97d5ba6212a4b296d4b1ac2c9a82f80400d2711e /ipa-server/ipa-install/ipa-server-install
parentaa8c4a53bf149aa0e9adfdf2058925eb71cca61b (diff)
Run the LDAP updater at the end of the installation process.
Running at the end ensures that /etc/ipa/ipa.conf is created and generally makes it more likely to succeed. Added a new argument to ipa-server-installl, -y <password_file>, so we don't have to pass it on the command-line.
Diffstat (limited to 'ipa-server/ipa-install/ipa-server-install')
-rw-r--r--ipa-server/ipa-install/ipa-server-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install
index d80bd7871..2ac2638cf 100644
--- a/ipa-server/ipa-install/ipa-server-install
+++ b/ipa-server/ipa-install/ipa-server-install
@@ -540,6 +540,11 @@ def main():
else:
bind.create_sample_bind_zone()
+ # Apply any LDAP updates. Needs to be done after the configuration file
+ # is created
+ service.print_msg("Applying LDAP updates")
+ ds.apply_updates()
+
# Restart ds and krb after configurations have been changed
service.print_msg("restarting the directory server")
ds.restart()