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:

committed by
Nico Williams

parent
2ee4169dd1
commit
efb111e450
@@ -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);
|
||||
|
Reference in New Issue
Block a user