From c45d58cc3fddf67bd787549aecc5741cdb35cc8a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 8 Apr 2008 14:58:52 -0400 Subject: Make sure we start the NSCD daemon. It makes a huge difference on clients, if we cache lookups --- ipa-client/ipa-install/ipa-client-install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ipa-client') 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 -- cgit