summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-03 08:25:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:28 -0500
commit5f6b501f217bf95522e2d1fe63ee1298feb1abd7 (patch)
tree7a276fd7d8f29eca76a261ad0ad8a077290dd1e0
parente0779e2d3bb29c16fc4215e78cda8764bce15767 (diff)
downloadsamba-5f6b501f217bf95522e2d1fe63ee1298feb1abd7.tar.gz
samba-5f6b501f217bf95522e2d1fe63ee1298feb1abd7.tar.bz2
samba-5f6b501f217bf95522e2d1fe63ee1298feb1abd7.zip
r24146: It is not an error for a Win2k3-only server not to support the NT4
replication call. Andrew Bartlett (This used to be commit 59cba32c09f5b014788e4fb0479ed31f26a3d7e2)
-rw-r--r--source4/libcli/util/doserr.c1
-rw-r--r--source4/libcli/util/doserr.h1
-rw-r--r--source4/torture/rpc/dssync.c3
3 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/util/doserr.c b/source4/libcli/util/doserr.c
index 3b1c2d264a..d62a31c1fa 100644
--- a/source4/libcli/util/doserr.c
+++ b/source4/libcli/util/doserr.c
@@ -75,6 +75,7 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_DFS_CANT_CREATE_JUNCT", WERR_DFS_CANT_CREATE_JUNCT },
{ "WERR_LOGON_FAILURE", WERR_LOGON_FAILURE },
{ "WERR_INVALID_SECURITY_DESCRIPTOR", WERR_INVALID_SECURITY_DESCRIPTOR },
+ { "WERR_INVALID_DOMAIN_ROLE", WERR_INVALID_DOMAIN_ROLE },
{ "WERR_UNKNOWN_REVISION", WERR_UNKNOWN_REVISION },
{ "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH },
{ "WERR_INVALID_OWNER", WERR_INVALID_OWNER },
diff --git a/source4/libcli/util/doserr.h b/source4/libcli/util/doserr.h
index 7dc938b2e7..0478eff947 100644
--- a/source4/libcli/util/doserr.h
+++ b/source4/libcli/util/doserr.h
@@ -201,6 +201,7 @@
#define WERR_NO_SUCH_USER W_ERROR(1317)
#define WERR_LOGON_FAILURE W_ERROR(1326)
#define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338)
+#define WERR_INVALID_DOMAIN_ROLE W_ERROR(1354)
#define WERR_NO_SUCH_DOMAIN W_ERROR(1355)
#define WERR_NO_SYSTEM_RESOURCES W_ERROR(1450)
#define WERR_SERVER_UNAVAILABLE W_ERROR(1722)
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index 8f22622846..9546e5fd3d 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -774,6 +774,9 @@ static BOOL test_FetchNT4Data(struct DsSyncTest *ctx)
}
printf("dcerpc_drsuapi_DsGetNT4ChangeLog failed - %s\n", errstr);
ret = False;
+ } else if (W_ERROR_EQUAL(r.out.result, WERR_INVALID_DOMAIN_ROLE)) {
+ printf("DsGetNT4ChangeLog not supported by target server\n");
+ break;
} else if (!W_ERROR_IS_OK(r.out.result)) {
printf("DsGetNT4ChangeLog failed - %s\n", win_errstr(r.out.result));
ret = False;