#1388 domain.remove_provider() does not work
Closed: Fixed None Opened 6 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

2 years ago

Login to comment on this ticket.

Metadata