summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;