From 683ba8a09db46f9fa936e6c2e3323ce232ef686d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 8 May 2014 12:21:43 +0200 Subject: s4-kdc/db_glue: use smb_krb5_principal_get_type() to access private members MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- source4/kdc/db-glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/kdc/db-glue.c') diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index e33b6873537..7045c376c5a 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -695,7 +695,7 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context, goto out; } - if (krb5_principal_get_type(context, principal) != KRB5_NT_ENTERPRISE_PRINCIPAL) { + if (smb_krb5_principal_get_type(context, principal) != KRB5_NT_ENTERPRISE_PRINCIPAL) { /* While we have copied the client principal, tests * show that Win2k3 returns the 'corrected' realm, not * the client-specified realm. This code attempts to @@ -1310,7 +1310,7 @@ static krb5_error_code samba_kdc_lookup_client(krb5_context context, NTSTATUS nt_status; char *principal_string; - if (krb5_principal_get_type(context, principal) == KRB5_NT_ENTERPRISE_PRINCIPAL) { + if (smb_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) { -- cgit v1.2.1