From: Ralph Boehme Date: Mon, 11 Dec 2017 06:56:02 +0000 (+0100) Subject: s3/torture/pdbtest: creating a trusted domain requires a valid SID X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=f1bd7c8bb48abc8fabb8374f549b888fbdd3036c s3/torture/pdbtest: creating a trusted domain requires a valid SID Signed-off-by: Ralph Boehme --- diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index adbd982ab442..71b5c61fc58e 100644 --- a/source3/torture/pdbtest.c +++ b/source3/torture/pdbtest.c @@ -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;