git.samba.org
/
lorikeet-heimdal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d44b1c
)
krb5: Set canonicalize flag for enterprise principals
author
Stefan Metzmacher
<metze@samba.org>
Mon, 6 Apr 2020 13:16:42 +0000
(15:16 +0200)
committer
Joseph Sutton
<josephsutton@catalyst.net.nz>
Wed, 3 May 2023 04:13:16 +0000
(16:13 +1200)
lib/krb5/init_creds_pw.c
patch
|
blob
|
history
diff --git
a/lib/krb5/init_creds_pw.c
b/lib/krb5/init_creds_pw.c
index e79c51a869f5312c089dbc576a9e2bfa914f678a..a2eaa3a5e96c4722165407a9ef35e02a79bba7f9 100644
(file)
--- a/
lib/krb5/init_creds_pw.c
+++ b/
lib/krb5/init_creds_pw.c
@@
-495,6
+495,8
@@
get_init_creds_common(krb5_context context,
if (ctx->ic_flags & KRB5_INIT_CREDS_CANONICALIZE)
ctx->flags.canonicalize = 1;
+ if (krb5_principal_get_type(context, client) == KRB5_NT_ENTERPRISE_PRINCIPAL)
+ ctx->flags.canonicalize = 1;
ctx->pre_auth_types = NULL;
ctx->addrs = NULL;