Bug 1746557

Summary: ipa-client-install calls "authselect select sssd --force" at uninstall time before restoring user-nsswitch.conf
Product: [Fedora] Fedora Reporter: François Cami <fcami>
Component: freeipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: abokovoy, contribs, ipa-maint, jcholast, jhrozek, pvoborni, rcritten, ssorce, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: freeipa-4.8.2-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1746558 (view as bug list) Environment:
Last Closed: 2019-11-20 01:02:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1746558    

Description François Cami 2019-08-28 18:31:27 UTC
Description of problem:
ipa-client-install calls "authselect select sssd --force" at uninstall time before restoring user-nsswitch.conf
user-nsswitch.conf still contains the sudoers line so nsswitch.conf is not identical post-uninstall to previous state.


Version-Release number of selected component (if applicable):
freeipa-4.8.1-1.fc30

How reproducible:
Always


Steps to Reproduce:
0. grep sudoers /etc/nsswitch.conf => Nothing
1. ipa-client-install (...) -U
2. ipa-client-install --uninstall -U
3. grep sudoers /etc/nsswitch.conf

Actual results:
sudoers: files sss

Expected results:
Nothing

Additional info:
This is visible by setting a breakpoint:
* in ipaplatform/redhat/authconfig.py::RedHatAuthSelect::unconfigure()
* before ipautil.run(cmd)
Run ipa-client-install --uninstall
and when Pdb stops execution, examine the content of user-nsswitch.conf.

Comment 1 François Cami 2019-08-28 18:39:13 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8054

Comment 2 François Cami 2019-08-29 14:08:46 UTC
PR: https://github.com/freeipa/freeipa/pull/3593

Comment 5 Fedora Update System 2019-11-12 20:48:17 UTC
FEDORA-2019-75a963e4cb has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-75a963e4cb

Comment 6 Fedora Update System 2019-11-13 10:53:03 UTC
freeipa-4.8.2-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-75a963e4cb

Comment 7 Fedora Update System 2019-11-20 01:02:08 UTC
freeipa-4.8.2-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.