summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-19 10:54:29 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-29 09:55:18 +0000
commit25301b7bf926c5f6f1e688e201d9dc9eee9f60ee (patch)
tree4ed967415845141816c1f117bb326389dd6530b9
parentaf4c9cc7c24fad8ccd96d0e2cb0c0cd0138eea9d (diff)
downloadsamba-25301b7bf926c5f6f1e688e201d9dc9eee9f60ee.tar.gz
samba-25301b7bf926c5f6f1e688e201d9dc9eee9f60ee.tar.bz2
samba-25301b7bf926c5f6f1e688e201d9dc9eee9f60ee.zip
s4:torture/rpc/samr.c - test the "ReplicaSourceNodeName" only against s3
AD handles this differently (see MS-SAMR 2.2.4.1)
-rw-r--r--source4/torture/rpc/samr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index ad61692e03..9675237e94 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -6691,8 +6691,10 @@ static bool test_QueryDomainInfo(struct dcerpc_pipe *p,
ret = false;
} else if (info->general.role == SAMR_ROLE_DOMAIN_PDC) {
if (dcerpc_server_name(p) && strcasecmp_m(dcerpc_server_name(p), info->general.primary.string) != 0) {
- torture_warning(tctx, "QueryDomainInfo level %u returned different PDC name (%s) compared to server name (%s), despite claiming to be the PDC\n",
- levels[i], info->general.primary.string, dcerpc_server_name(p));
+ if (torture_setting_bool(tctx, "samba3", false)) {
+ torture_warning(tctx, "QueryDomainInfo level %u returned different PDC name (%s) compared to server name (%s), despite claiming to be the PDC\n",
+ levels[i], info->general.primary.string, dcerpc_server_name(p));
+ }
}
}
break;