summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index c0b6ee2ea..f84748267 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -666,13 +666,15 @@ int ipa_get_auth_options(struct ipa_options *ipa_opts,
}
/* If krb5_fast_principal was not set explicitly, default to
- * host/$client_hostname
+ * host/$client_hostname@REALM
*/
value = dp_opt_get_string(ipa_opts->auth, KRB5_FAST_PRINCIPAL);
if (value == NULL) {
- value = talloc_asprintf(ipa_opts->auth, "host/%s",
+ value = talloc_asprintf(ipa_opts->auth, "host/%s@%s",
dp_opt_get_string(ipa_opts->basic,
- IPA_HOSTNAME));
+ IPA_HOSTNAME),
+ dp_opt_get_string(ipa_opts->auth,
+ KRB5_REALM));
if (value == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "Cannot set %s!\n",
ipa_opts->auth[KRB5_FAST_PRINCIPAL].opt_name);