Bug 471642 - Stop nscd when caching is disabled by authconfig
Summary: Stop nscd when caching is disabled by authconfig
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: authconfig
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-14 19:46 UTC by Suzanne Hillman
Modified: 2018-09-10 10:02 UTC (History)
4 users (show)

Fixed In Version: authconfig-5.3.21-6.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-14 07:35:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0482 0 normal SHIPPED_LIVE authconfig bug fix update 2009-05-14 07:35:31 UTC

Description Suzanne Hillman 2008-11-14 19:46:23 UTC
Description of problem:
If changes are made in authentication methods in system-config-authentication, and caching is enabled, please restart the caching server! Otherwise, losing a network connection makes the machine _VERY VERY UNHAPPY_. This is problematic if one happens to be on a laptop.

Version-Release number of selected component (if applicable):
authconfig-5.3.21-4.el5

How reproducible:
Always

Steps to Reproduce:
1. Setup machine via authconfig to use LDAP for auth and user information, and choose the cache user information option.
2. Let it talk to the LDAP server and such. Perhaps, boot with this setup.
3. Use authconfig to disable the LDAP auth and user information, then remove network connection.
  
Actual results:
Lots of major delays for _EVERYTHING_ the system tries to do.

Expected results:
No delays; it should not be trying to use LDAP anymore.

Additional info:

Comment 1 Tomas Mraz 2008-11-18 09:55:58 UTC
Jakub, shouldn't nscd reload the nsswitch config file automatically?

Comment 2 Tomas Mraz 2008-11-20 17:24:51 UTC
Apparently does not.

Comment 3 Tomas Mraz 2008-11-27 10:15:13 UTC
Actually I cannot exactly reproduce your problem. If I have caching enabled in the UI the nscd is always restarted when authconfig settings are saved.

The only problem I see is if I disable caching in the UI it will not stop the nscd on save (it will just chkconfig it off) and then nscd is not stopped any more.

So during your testing do you see caching enabled in the ui?

Comment 4 Suzanne Hillman 2008-12-01 19:48:13 UTC
That's very confusing. 

No, I was not turning it off, just ldap and kerberos settings. The reason I thought it was the caching is because restarting nscd fixed the problems I was seeing with the machine not actually stopping trying to talk to the LDAP server.

Comment 10 Petr Šplíchal 2009-05-05 17:36:04 UTC
I checked the behaviour of the fixed package and can confirm that
nscd is restarted upon any change of ldap service:

# authconfig --update --enableldap
Stopping nscd: [  OK  ]
Starting nscd: [  OK  ]

# authconfig --update --disableldap
Stopping nscd: [  OK  ]
Starting nscd: [  OK  ]

The same can be observed when enabling/disabling ldap through GUI.
The new version of authconfig correctly stops the nscd daemon when
caching is being disabled:

authconfig-5.3.21-5.el5
# authconfig --update --disablecache
# service nscd status
nscd (pid 6277) is running...

authconfig-5.3.21-6.el5
# authconfig --update --disablecache
Stopping nscd: [  OK  ]
# service nscd status
nscd is stopped

But does that really fix the issue mentioned in bug summary &
description?

Comment 11 Petr Šplíchal 2009-05-05 17:38:32 UTC
Sorry, forgot to mention that nscd restarting works the same
with both the old and the new package. There seems to be no
difference.

Comment 12 Tomas Mraz 2009-05-05 19:18:39 UTC
That's really questionable. But the bug with not stopping nscd with the cache disabled was there and it was fixed and I do not see other cases where authconfig would not restart nscd if it was necessary.

Comment 13 Petr Šplíchal 2009-05-06 07:37:08 UTC
In that case, I suggest to change the bug summary to: "stop nscd
service when caching is disabled by authconfig", as this is
(completely?) different issue and the original description is
confusing.

Suzanne, if you still experience the problem, please, file another
bug, as caching server is always restarted when a change is made
to ldap config.  The real cause of this issue must be in something
else.

Comment 14 Tomas Mraz 2009-05-06 07:58:34 UTC
Is it possible that following scenario happened?

nscd was started by other means (like manually 'service nscd start') but it was still disabled with chkconfig. Then old authconfig would not stop it when updating the configuration.

Comment 16 Suzanne Hillman 2009-05-06 14:43:20 UTC
It does sound like this bug will resolve my original problem, as it was when I was disabling caching via authconfig that it was not actually stopping it.

Comment 18 errata-xmlrpc 2009-05-14 07:35:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0482.html


Note You need to log in before you can comment on or make changes to this bug.