s4-torture: use smb_krb5_principal_set_type() in lsa forest krb5 tests.
authorGünther Deschner <gd@samba.org>
Thu, 9 Jul 2015 16:05:12 +0000 (18:05 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 14 Jul 2015 17:15:58 +0000 (19:15 +0200)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jul 14 19:15:59 CEST 2015 on sn-devel-104

source4/torture/rpc/lsa.c

index 4834af3a68a5c6c271b10c01ef3d02089608564a..95caebbd004554d75ab3de9eeb9b4ffab6d73573 100644 (file)
@@ -3242,8 +3242,8 @@ static bool check_pw_with_krb5(struct torture_context *tctx,
                                                &ctx->upn_realm,
                                                realm, upn_realm_string, NULL),
                        0, "smb_krb5_make_principal failed");
-       krb5_principal_set_type(ctx->smb_krb5_context->krb5_context,
-                               ctx->upn_realm, KRB5_NT_ENTERPRISE_PRINCIPAL);
+       smb_krb5_principal_set_type(ctx->smb_krb5_context->krb5_context,
+                                   ctx->upn_realm, KRB5_NT_ENTERPRISE_PRINCIPAL);
 
        upn_dns_string = talloc_asprintf(ctx, "user@%s",
                                         trusted_dns_name);
@@ -3252,8 +3252,8 @@ static bool check_pw_with_krb5(struct torture_context *tctx,
                                                &ctx->upn_dns,
                                                realm, upn_dns_string, NULL),
                        0, "smb_krb5_make_principal failed");
-       krb5_principal_set_type(ctx->smb_krb5_context->krb5_context,
-                               ctx->upn_dns, KRB5_NT_ENTERPRISE_PRINCIPAL);
+       smb_krb5_principal_set_type(ctx->smb_krb5_context->krb5_context,
+                                   ctx->upn_dns, KRB5_NT_ENTERPRISE_PRINCIPAL);
 
        upn_netbios_string = talloc_asprintf(ctx, "user@%s",
                                         trusted_netbios_name);
@@ -3262,8 +3262,8 @@ static bool check_pw_with_krb5(struct torture_context *tctx,
                                                &ctx->upn_netbios,
                                                realm, upn_netbios_string, NULL),
                        0, "smb_krb5_make_principal failed");
-       krb5_principal_set_type(ctx->smb_krb5_context->krb5_context,
-                               ctx->upn_netbios, KRB5_NT_ENTERPRISE_PRINCIPAL);
+       smb_krb5_principal_set_type(ctx->smb_krb5_context->krb5_context,
+                                   ctx->upn_netbios, KRB5_NT_ENTERPRISE_PRINCIPAL);
 
        k5ret = principal_from_credentials(ctx, credentials, ctx->smb_krb5_context,
                                           &principal, &obtained,  &error_string);