#8054 ipa-client-install calls "authselect select sssd --force" at uninstall time before restoring user-nsswitch.conf
Closed: fixed 4 years ago by fcami. Opened 4 years ago by fcami.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1746557

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.

Metadata Update from @fcami:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1746557

4 years ago

Metadata Update from @fcami:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3593

4 years ago

master:

  • 03a228a ipatests: remove xfail in TestIpaClientAutomountFileRestore
  • 73f049c authconfig.py: restore user-nsswitch.conf at uninstall time

ipa-4-8:

  • ffe9871 ipatests: remove xfail in TestIpaClientAutomountFileRestore
  • 7343504 authconfig.py: restore user-nsswitch.conf at uninstall time

Metadata Update from @fcami:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata