summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-install
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-04-08 14:58:52 -0400
committerSimo Sorce <ssorce@redhat.com>2008-04-08 14:58:52 -0400
commitc45d58cc3fddf67bd787549aecc5741cdb35cc8a (patch)
treefcb54cb80d24e959167a1dd3535a21aa3407a241 /ipa-client/ipa-install/ipa-client-install
parentf24842fd9de3800919e0b800ca8c5f639cc32ee4 (diff)
downloadfreeipa-c45d58cc3fddf67bd787549aecc5741cdb35cc8a.tar.gz
freeipa-c45d58cc3fddf67bd787549aecc5741cdb35cc8a.tar.xz
freeipa-c45d58cc3fddf67bd787549aecc5741cdb35cc8a.zip
Make sure we start the NSCD daemon.
It makes a huge difference on clients, if we cache lookups
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
-rw-r--r--ipa-client/ipa-install/ipa-client-install15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 64534a0e6..4be2b9813 100644
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -321,6 +321,21 @@ def main():
ipaclient.ntpconf.config_ntp(ntp_server, fstore)
print "NTP enabled"
+ #Activate Name Server Caching Daemon
+ try:
+ run(["/sbin/service", "nscd", "restart"])
+ except:
+ print "Failed to start the NSCD daemon"
+ print "Caching of users/groups will not be available"
+ pass
+
+ try:
+ run(["/sbin/chkconfig", "nscd", "on"])
+ except:
+ print "Failed to configure automatic startup of the NSCD daemon"
+ print "Caching of users/groups will not be available after reboot"
+ pass
+
print "Client configuration complete."
return 0