#1388 domain.remove_provider() does not work
Closed: Fixed None Opened 8 years ago by rcritten.

I'm writing a tool for IPA to configure the autofs client. This needs to include the ability to roll back the changes. It works except for domain.remove_provider(). No exception is raised but it doesn't remove the provider either.

I'm using a daily build: sssd-1.8.93-0.20120618T1837Zgitbb79e75.fc17.x86_64

Here is the output from a script I wrote to demonstrate the problem. I start with an sssd.conf generated by ipa-client-install. I add autofs support, then remove it but the autofs provider remains.

Starting with:
[domain/example.com]

cache_credentials = True
krb5_store_password_if_offline = True
ipa_domain = example.com
id_provider = ipa
auth_provider = ipa
access_provider = ipa
ipa_hostname = pinto.example.com
chpass_provider = ipa
ipa_server = _srv_, tove.example.com
ldap_tls_cacert = /etc/ipa/ca.crt
[sssd]
services = nss, pam, ssh
config_file_version = 2

domains = example.com
[nss]

[pam]

[sudo]

[autofs]

[ssh]


AutoFS Configuration:
[domain/example.com]

cache_credentials = True
krb5_store_password_if_offline = True
ipa_domain = example.com
id_provider = ipa
auth_provider = ipa
access_provider = ipa
ipa_hostname = pinto.example.com
chpass_provider = ipa
ipa_server = _srv_, tove.example.com
ldap_tls_cacert = /etc/ipa/ca.crt
autofs_provider = ipa
ipa_automount_location = test
[sssd]
services = nss, pam, autofs, ssh
config_file_version = 2

domains = example.com
[nss]

[pam]

[sudo]

[autofs]

[ssh]


Restored Configuration:
[domain/example.com]

cache_credentials = True
krb5_store_password_if_offline = True
ipa_domain = example.com
id_provider = ipa
auth_provider = ipa
access_provider = ipa
ipa_hostname = pinto.example.com
chpass_provider = ipa
ipa_server = _srv_, tove.example.com
ldap_tls_cacert = /etc/ipa/ca.crt
autofs_provider = ipa
[sssd]
services = nss, pam, ssh
config_file_version = 2

domains = example.com
[nss]

[pam]

[sudo]

[autofs]

[ssh]

Script to demonstrate problem
sssd.py

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.9.0
priority: major => blocker
rhbz: => 0

Fields changed

owner: somebody => sgallagh
status: new => assigned

Fields changed

milestone: SSSD 1.9.0 => SSSD 1.9.0 RC1

Fields changed

resolution: => fixed
status: assigned => closed

Metadata Update from @rcritten:
- Issue assigned to sgallagh
- Issue set to the milestone: SSSD 1.9.0 beta 7

3 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2430

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata