svn commit: samba r4660 - in branches/SAMBA_4_0/source/torture/rpc: .

abartlet at samba.org abartlet at samba.org
Tue Jan 11 01:36:27 GMT 2005


Author: abartlet
Date: 2005-01-11 01:36:26 +0000 (Tue, 11 Jan 2005)
New Revision: 4660

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4660

Log:
Test what we should return for a secret that does not exist.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/torture/rpc/lsa.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/lsa.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/lsa.c	2005-01-10 22:56:51 UTC (rev 4659)
+++ branches/SAMBA_4_0/source/torture/rpc/lsa.c	2005-01-11 01:36:26 UTC (rev 4660)
@@ -796,6 +796,15 @@
 			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;



More information about the samba-cvs mailing list