s4-kdc: Use smb_krb5_principal_get_(type|realm) in db-glue
authorAndreas Schneider <asn@samba.org>
Fri, 24 Jul 2015 15:48:08 +0000 (17:48 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 30 Jul 2015 08:24:26 +0000 (10:24 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/kdc/db-glue.c

index 8da0da0cd1a6c0a13cb072adae845c4bac5e87ed..0825f5946bcba2cf53da9d701ec63fcf67d90eb6 100644 (file)
@@ -1998,7 +1998,7 @@ static krb5_error_code samba_kdc_lookup_realm(krb5_context context,
                return ENOMEM;
        }
 
-       if (krb5_principal_get_type(context, principal) == KRB5_NT_ENTERPRISE_PRINCIPAL) {
+       if (smb_krb5_principal_get_type(context, principal) == KRB5_NT_ENTERPRISE_PRINCIPAL) {
                char *principal_string = NULL;
                krb5_principal enterprise_principal = NULL;
                char *enterprise_realm = NULL;
@@ -2132,9 +2132,9 @@ static krb5_error_code samba_kdc_lookup_realm(krb5_context context,
                return ENOMEM;
        }
 
-       ret = krb5_principal_set_realm(context,
-                                      entry_ex->entry.principal,
-                                      upper);
+       ret = smb_krb5_principal_set_realm(context,
+                                          entry_ex->entry.principal,
+                                          upper);
        if (ret) {
                TALLOC_FREE(frame);
                return ret;