1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

krb5_wrap: let smb_krb5_parse_name() accept enterprise principals

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14124

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2019-09-13 15:52:25 +02:00 committed by Günther Deschner
parent 303b7e59a2
commit 3bdf023956

View File

@ -701,6 +701,11 @@ krb5_error_code smb_krb5_parse_name(krb5_context context,
}
ret = krb5_parse_name(context, utf8_name, principal);
if (ret == KRB5_PARSE_MALFORMED) {
ret = krb5_parse_name_flags(context, utf8_name,
KRB5_PRINCIPAL_PARSE_ENTERPRISE,
principal);
}
TALLOC_FREE(frame);
return ret;
}