diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-02-09 13:53:39 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-02-10 13:50:47 -0500 |
commit | fd50d9e900c899b67a7b4820c2febba3fe24b6ce (patch) | |
tree | 4608c66ee9259e7ace45d07e726bc4d45320a395 /ipa-client | |
parent | e6d3b7031dbcfe8da46387dddb02c303cdd5d35d (diff) | |
download | freeipa-fd50d9e900c899b67a7b4820c2febba3fe24b6ce.tar.gz freeipa-fd50d9e900c899b67a7b4820c2febba3fe24b6ce.tar.xz freeipa-fd50d9e900c899b67a7b4820c2febba3fe24b6ce.zip |
nscd should be disabled before sssd is configured/started.
If not then sssd spits out a warning message:
sssd: nscd socket was detected. As nscd caching capabilities may conflict
with SSSD, it is recommended to not run nscd in parallel with SSSD
Stop nscd before configuring sssd so we don't confuse our users.
ticket 743
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 277ad884..a32564df 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -733,6 +733,28 @@ def main(): configure_certmonger(fstore, subject_base, cli_realm, options) + if options.sssd: + nscd_action = "stop" + nscd_status = "off" + else: + nscd_action = "restart" + nscd_status = "on" + + #Name Server Caching Daemon. Disable for SSSD, use otherwise + try: + service('nscd', nscd_action) + except: + print >>sys.stderr, "Failed to %s the NSCD daemon" % nscd_action + if not options.sssd: + print >>sys.stderr, "Caching of users/groups will not be available" + + try: + chkconfig('nscd', nscd_status) + except: + print >>sys.stderr, "Failed to configure automatic startup of the NSCD daemon" + if not options.sssd: + print >>sys.stderr, "Caching of users/groups will not be available after reboot" + # Modify nsswitch/pam stack if options.sssd: cmd = ["/usr/sbin/authconfig", "--enablesssd", "--enablesssdauth", "--update"] @@ -782,28 +804,6 @@ def main(): ipaclient.ntpconf.config_ntp(ntp_server, fstore) print "NTP enabled" - if options.sssd: - nscd_action = "stop" - nscd_status = "off" - else: - nscd_action = "restart" - nscd_status = "on" - - #Name Server Caching Daemon. Disable for SSSD, use otherwise - try: - service('nscd', nscd_action) - except: - print >>sys.stderr, "Failed to %s the NSCD daemon" % nscd_action - if not options.sssd: - print >>sys.stderr, "Caching of users/groups will not be available" - - try: - chkconfig('nscd', nscd_status) - except: - print >>sys.stderr, "Failed to configure automatic startup of the NSCD daemon" - if not options.sssd: - print >>sys.stderr, "Caching of users/groups will not be available after reboot" - print "Client configuration complete." return 0 |