mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
s4-torture: use smb_krb5_principal_set_type() in lsa forest krb5 tests.
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
This commit is contained in:
parent
a1c9415769
commit
ff3b446175
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user