Native move servers will refuse these SamSync operations, so don't
authorAndrew Bartlett <abartlet@samba.org>
Thu, 10 Jan 2008 22:22:26 +0000 (09:22 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 Jan 2008 22:22:26 +0000 (09:22 +1100)
count them as errors.

Andrew Bartlett
(This used to be commit 5c39f3135666854b57a7d2643f59feee7ceeabc8)

source4/torture/rpc/netlogon.c

index 74bc3a2bf78f6aaa0eef330a6660cdafe8e8f1a2..a13172b695bc72026fbf51e9a230cf97e12f9c50 100644 (file)
@@ -647,6 +647,10 @@ static bool test_DatabaseSync(struct torture_context *tctx,
                        if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES))
                            break;
 
+                       /* Native mode servers don't do this */
+                       if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {
+                               return true;
+                       }
                        torture_assert_ntstatus_ok(tctx, status, "DatabaseSync");
 
                        if (!creds_client_check(creds, &r.out.return_authenticator.cred)) {
@@ -968,6 +972,11 @@ static bool test_DatabaseSync2(struct torture_context *tctx,
                        if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES))
                            break;
 
+                       /* Native mode servers don't do this */
+                       if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {
+                               return true;
+                       }
+
                        torture_assert_ntstatus_ok(tctx, status, "DatabaseSync2");
 
                        if (!creds_client_check(creds, &r.out.return_authenticator.cred)) {