diff options
author | Ralph Boehme <slow@samba.org> | 2017-12-11 07:56:02 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-01-13 12:55:07 +0100 |
commit | f1bd7c8bb48abc8fabb8374f549b888fbdd3036c (patch) | |
tree | a1add6aed5cc686d490b5e51da9eee864afa40af /source3/torture | |
parent | 4b0641bf10f7561771cee2581e1d7fc4e183c826 (diff) | |
download | samba-f1bd7c8bb48abc8fabb8374f549b888fbdd3036c.tar.gz |
s3/torture/pdbtest: creating a trusted domain requires a valid SID
Signed-off-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/pdbtest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index adbd982ab44..71b5c61fc58 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; |