summaryrefslogtreecommitdiff
path: root/source4/kdc/db-glue.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-05-08 12:21:43 +0200
committerStefan Metzmacher <metze@samba.org>2015-03-20 23:25:54 +0100
commit683ba8a09db46f9fa936e6c2e3323ce232ef686d (patch)
tree06f35aa7ceeadb35bed6403834a92c25217f6c3e /source4/kdc/db-glue.c
parent3ee26c43b935591f77857cb5178b07fa02d21b09 (diff)
downloadsamba-683ba8a09db46f9fa936e6c2e3323ce232ef686d.tar.gz
s4-kdc/db_glue: use smb_krb5_principal_get_type() to access private members
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/kdc/db-glue.c')
-rw-r--r--source4/kdc/db-glue.c4
1 files changed, 2 insertions, 2 deletions
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) {