s4-kdc/db_glue: use smb_krb5_principal_set_realm().
authorGünther Deschner <gd@samba.org>
Thu, 8 May 2014 08:09:17 +0000 (10:09 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 20 Mar 2015 22:25:53 +0000 (23:25 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/db-glue.c

index cc8e8558cb7dd9bf399e09f0d692a87028787da5..33eeb986d94ad6d32b74afb49b33a0f09ba45dde 100644 (file)
@@ -664,7 +664,7 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context,
                         * this appears to be required regardless of
                         * the canonicalize flag from the client
                         */
-                       ret = krb5_principal_set_realm(context, entry_ex->entry.principal, lpcfg_realm(lp_ctx));
+                       ret = smb_krb5_principal_set_realm(context, entry_ex->entry.principal, lpcfg_realm(lp_ctx));
                        if (ret) {
                                krb5_clear_error_message(context);
                                goto out;
@@ -703,7 +703,7 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context,
                         * we determine from our records */
                        
                        /* this has to be with malloc() */
-                       ret = krb5_principal_set_realm(context, entry_ex->entry.principal, lpcfg_realm(lp_ctx));
+                       ret = smb_krb5_principal_set_realm(context, entry_ex->entry.principal, lpcfg_realm(lp_ctx));
                        if (ret) {
                                krb5_clear_error_message(context);
                                goto out;
@@ -1033,7 +1033,7 @@ static krb5_error_code samba_kdc_trust_message2entry(krb5_context context,
         * we determine from our records
         */
 
-       ret = krb5_principal_set_realm(context, entry_ex->entry.principal, realm);
+       ret = smb_krb5_principal_set_realm(context, entry_ex->entry.principal, realm);
        if (ret) {
                krb5_clear_error_message(context);
                goto out;