summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-08-01 13:11:41 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-07-30 10:24:26 +0200
commit217d4c1531aab25a1a93962ce38ff7fe9ac1bb2c (patch)
treeba55101d67e70cfac62ffd833177e1bc51e5151f /source4
parent80509dffdb7ebaa57e05589a9a896bf9a57a00e7 (diff)
downloadsamba-217d4c1531aab25a1a93962ce38ff7fe9ac1bb2c.tar.gz
s4-auth: Call krb5_get_init_creds_opt_set_canonicalize() in MIT case.
Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/kerberos/kerberos_util.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/auth/kerberos/kerberos_util.c b/source4/auth/kerberos/kerberos_util.c
index 76d46bc13f1..2026af326d0 100644
--- a/source4/auth/kerberos/kerberos_util.c
+++ b/source4/auth/kerberos/kerberos_util.c
@@ -309,6 +309,8 @@ done:
*/
krb5_get_init_creds_opt_set_win2k(smb_krb5_context->krb5_context,
krb_options, true);
+#else /* MIT */
+ krb5_get_init_creds_opt_set_canonicalize(krb_options, true);
#endif
tries = 2;
@@ -426,7 +428,12 @@ done:
ret, mem_ctx));
talloc_free(mem_ctx);
return ret;
- }
+ }
+
+ DEBUG(10,("kinit for %s succeeded\n",
+ cli_credentials_get_principal(credentials, mem_ctx)));
+
+
talloc_free(mem_ctx);
return 0;
}