r15499: This test can't run if the remote server won't let us open a policy handle.
authorAndrew Bartlett <abartlet@samba.org>
Sun, 7 May 2006 18:09:54 +0000 (18:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:42 +0000 (14:05 -0500)
Andrew Bartlett
(This used to be commit ca0ffb1218f3c2482b6b04463e627accd03d8cf9)

source4/torture/rpc/session_key.c

index 1d0274199440cb41fe5a01dd36b4dc046931523f..d70fc95b182d5a818def0f6ab71df53e087a5ca0 100644 (file)
@@ -180,7 +180,10 @@ BOOL torture_rpc_lsa_secrets(struct torture_context *torture)
        }
 
        if (test_lsa_OpenPolicy2(p, mem_ctx, &handle)) {
-               if (!test_CreateSecret_basic(p, mem_ctx, handle)) {
+               if (!handle) {
+                       printf("OpenPolicy2 failed.  This test cannot run against this server\n");
+                       ret = False;
+               } else if (!test_CreateSecret_basic(p, mem_ctx, handle)) {
                        ret = False;
                }
        } else {