diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-11 09:22:26 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-01-11 09:22:26 +1100 |
commit | 34dd0dc61010172f1081da0009ef15c255e147ed (patch) | |
tree | c87bbf1d9bf7a674ed1140c9a4f20aca5b67f108 | |
parent | cef40813fac9363b544b22b2fa277af37a800cdf (diff) | |
download | samba-34dd0dc61010172f1081da0009ef15c255e147ed.tar.gz samba-34dd0dc61010172f1081da0009ef15c255e147ed.tar.bz2 samba-34dd0dc61010172f1081da0009ef15c255e147ed.zip |
Native move servers will refuse these SamSync operations, so don't
count them as errors.
Andrew Bartlett
(This used to be commit 5c39f3135666854b57a7d2643f59feee7ceeabc8)
-rw-r--r-- | source4/torture/rpc/netlogon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 74bc3a2bf7..a13172b695 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -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)) { |