Separate enterprise and canonicalize flags

The meaning of the two is different and we should
not implicitly set both if one was requested (this
aligns the logic with MIT kinit -C/-E options).

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
This commit is contained in:
Isaac Boukris
2018-12-24 17:15:53 +02:00
committed by Nico Williams
parent 2ee4169dd1
commit efb111e450
4 changed files with 7 additions and 9 deletions

View File

@@ -1058,7 +1058,7 @@ get_princ(krb5_context context, krb5_principal *principal, const char *name)
user_realm = get_user_realm(context);
if (name) {
if (canonicalize_flag || enterprise_flag)
if (enterprise_flag)
parseflags |= KRB5_PRINCIPAL_PARSE_ENTERPRISE;
parse_name_realm(context, name, parseflags, user_realm, &tmp);