mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
kdc: fixup KDC to use functions portable to MIT krb5
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
d7752757c2
commit
01c6991d36
@ -1264,7 +1264,7 @@ static krb5_error_code samba_kdc_lookup_client(krb5_context context,
|
||||
NTSTATUS nt_status;
|
||||
char *principal_string;
|
||||
|
||||
if (principal->name.name_type == KRB5_NT_ENTERPRISE_PRINCIPAL) {
|
||||
if (krb5_principal_get_type(context, principal) == KRB5_NT_ENTERPRISE_PRINCIPAL) {
|
||||
principal_string = smb_krb5_principal_get_comp_string(mem_ctx, context,
|
||||
principal, 0);
|
||||
if (principal_string == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user