summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-06-12 13:44:19 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-16 12:53:14 +0200
commit03713859dffacc7142393e53c73d8d4cf7dee8d5 (patch)
tree2f2f78ac3e5bdab356465da3715ef9dad515105a /src/providers/ipa
parent9f1106573a4fca41b99a468d06fa392486faf43c (diff)
downloadsssd-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/ipa')
-rw-r--r--src/providers/ipa/ipa_subdomains.c8
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) {