diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-01-11 01:36:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:39 -0500 |
commit | daf67d76fcd9bca51a95b62a51ed5525ec24c427 (patch) | |
tree | 7ff27d462af243cc123e8821c40b5e9a45fd3abf /source4/torture/rpc | |
parent | 4fc38af93b1b977fa2570c3df6897c6bd99f433b (diff) | |
download | samba-daf67d76fcd9bca51a95b62a51ed5525ec24c427.tar.gz samba-daf67d76fcd9bca51a95b62a51ed5525ec24c427.tar.bz2 samba-daf67d76fcd9bca51a95b62a51ed5525ec24c427.zip |
r4660: Test what we should return for a secret that does not exist.
Andrew Bartlett
(This used to be commit a17a8fbf9a843c2c9e10940878b43ad8e1583091)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/lsa.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index 7f1411ea84..7cb5a05884 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -796,6 +796,15 @@ static BOOL test_CreateSecret(struct dcerpc_pipe *p, printf("Second delete expected INVALID_HANDLE - %s\n", nt_errstr(status)); ret = False; } + + printf("Testing OpenSecret of just-deleted secret\n"); + + status = dcerpc_lsa_OpenSecret(p, mem_ctx, &r2); + if (!NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) { + printf("OpenSecret expected OBJECT_NAME_NOT_FOUND - %s\n", nt_errstr(status)); + ret = False; + } + } return ret; |