1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

s3/torture/pdbtest: creating a trusted domain requires a valid SID

Signed-off-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Ralph Boehme 2017-12-11 07:56:02 +01:00 committed by Karolin Seeger
parent 4b0641bf10
commit f1bd7c8bb4

View File

@ -450,6 +450,7 @@ static bool test_trusted_domains(TALLOC_CTX *ctx,
struct trustAuthInOutBlob taiob;
struct AuthenticationInformation aia;
enum ndr_err_code ndr_err;
bool ok;
td = talloc_zero(ctx ,struct pdb_trusted_domain);
if (!td) {
@ -463,6 +464,11 @@ static bool test_trusted_domains(TALLOC_CTX *ctx,
fprintf(stderr, "talloc failed\n");
return false;
}
ok = dom_sid_parse("S-1-5-21-123-456-789", &td->security_identifier);
if (!ok) {
fprintf(stderr, "dom_sid_parse S-1-5-21-123-456-789 failed\n");
return false;
}
td->trust_auth_incoming = data_blob_null;