diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-06-12 13:44:19 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-16 12:53:14 +0200 |
commit | 03713859dffacc7142393e53c73d8d4cf7dee8d5 (patch) | |
tree | 2f2f78ac3e5bdab356465da3715ef9dad515105a /src/providers | |
parent | 9f1106573a4fca41b99a468d06fa392486faf43c (diff) | |
download | sssd-03713859dffacc7142393e53c73d8d4cf7dee8d5.tar.gz sssd-03713859dffacc7142393e53c73d8d4cf7dee8d5.tar.bz2 sssd-03713859dffacc7142393e53c73d8d4cf7dee8d5.zip |
subdomains: touch krb5.conf when creating new domain-realm mappings
https://fedorahosted.org/sssd/ticket/1815
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ipa/ipa_subdomains.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 18878ae3..881f27c5 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -382,6 +382,14 @@ ipa_subdomains_write_mappings(struct sss_domain_info *domain) goto done; } + /* touch krb5.conf to ensure that new mappings are loaded */ + ret = sss_krb5_touch_config(); + if (ret != EOK) { + DEBUG(SSSDBG_CRIT_FAILURE, ("Unable to change last modification time " + "of krb5.conf. Created mappings may not be loaded.\n")); + /* just continue */ + } + ret = EOK; done: if (fstream) { |