Blame SOURCES/0049-krb5-do-not-create-kdcinfo-file-if-proxy-configurati.patch
|
|
6cf099 |
From 61faa93f3ad91afdeba09d4e248d596875aa6d5a Mon Sep 17 00:00:00 2001
|
|
|
6cf099 |
From: Sumit Bose <sbose@redhat.com>
|
|
|
6cf099 |
Date: Fri, 31 Jul 2015 11:05:48 +0200
|
|
|
6cf099 |
Subject: [PATCH 49/57] krb5: do not create kdcinfo file if proxy configuration
|
|
|
6cf099 |
exists
|
|
|
6cf099 |
|
|
|
6cf099 |
Resolves https://fedorahosted.org/sssd/ticket/2652
|
|
|
6cf099 |
|
|
|
6cf099 |
Reviewed-by: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
6cf099 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
6cf099 |
---
|
|
|
6cf099 |
src/providers/krb5/krb5_common.c | 7 +++++++
|
|
|
6cf099 |
1 file changed, 7 insertions(+)
|
|
|
6cf099 |
|
|
|
6cf099 |
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c
|
|
|
6cf099 |
index 81d4048b63dba98706bbef1936df7f10f79e1ae5..be6c9e3540ad470307f4edb168f0ff6cc581632f 100644
|
|
|
6cf099 |
--- a/src/providers/krb5/krb5_common.c
|
|
|
6cf099 |
+++ b/src/providers/krb5/krb5_common.c
|
|
|
6cf099 |
@@ -428,6 +428,13 @@ errno_t write_krb5info_file(const char *realm, const char *server,
|
|
|
6cf099 |
return EINVAL;
|
|
|
6cf099 |
}
|
|
|
6cf099 |
|
|
|
6cf099 |
+ if (sss_krb5_realm_has_proxy(realm)) {
|
|
|
6cf099 |
+ DEBUG(SSSDBG_CONF_SETTINGS,
|
|
|
6cf099 |
+ "KDC Proxy available for realm [%s], no kdcinfo file created.\n",
|
|
|
6cf099 |
+ realm);
|
|
|
6cf099 |
+ return EOK;
|
|
|
6cf099 |
+ }
|
|
|
6cf099 |
+
|
|
|
6cf099 |
if (strcmp(service, SSS_KRB5KDC_FO_SRV) == 0) {
|
|
|
6cf099 |
name_tmpl = KDCINFO_TMPL;
|
|
|
6cf099 |
} else if (strcmp(service, SSS_KRB5KPASSWD_FO_SRV) == 0) {
|
|
|
6cf099 |
--
|
|
|
6cf099 |
2.4.3
|
|
|
6cf099 |
|