summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-09-09 17:07:27 +0300
committerAndrew Bartlett <abartlet@samba.org>2009-09-11 07:29:55 +1000
commitebfc13b452b970e5c676933701819a28b77ac8bf (patch)
tree59a422148cbf72641c1ffdad485387b1597a159e
parent41596d2c434b9d3f0c7719d716f865f7b40fff9d (diff)
downloadsamba-ebfc13b452b970e5c676933701819a28b77ac8bf.tar.gz
samba-ebfc13b452b970e5c676933701819a28b77ac8bf.tar.bz2
samba-ebfc13b452b970e5c676933701819a28b77ac8bf.zip
s4/tort: CrackNames test update to work against W2K3.
DRSUAPI_DS_NAME_FORMAT_UKNOWN added to 'known-to-fail' responses as this actually means to ask AD to resolve a name from FQDN format to Unknown format.
-rw-r--r--source4/torture/rpc/drsuapi_cracknames.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/drsuapi_cracknames.c b/source4/torture/rpc/drsuapi_cracknames.c
index 5377882446..b49a006e80 100644
--- a/source4/torture/rpc/drsuapi_cracknames.c
+++ b/source4/torture/rpc/drsuapi_cracknames.c
@@ -115,6 +115,7 @@ static bool test_DsCrackNamesMatrix(struct torture_context *tctx,
}
torture_comment(tctx, __location__ ": (expected) error\n");
break;
+ case DRSUAPI_DS_NAME_FORMAT_UNKNOWN: /* should fail as we ask server to convert to Unknown format */
case DRSUAPI_DS_NAME_FORMAT_DNS_DOMAIN:
case DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY:
if (r.out.ctr->ctr1->array[0].status != DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR) {
@@ -132,6 +133,7 @@ static bool test_DsCrackNamesMatrix(struct torture_context *tctx,
r.out.ctr->ctr1->array[0].status);
torture_fail(tctx, err_msg);
}
+ break;
}
switch (formats[i]) {
@@ -141,6 +143,7 @@ static bool test_DsCrackNamesMatrix(struct torture_context *tctx,
case DRSUAPI_DS_NAME_FORMAT_SERVICE_PRINCIPAL:
n_from[i] = service_principal_name;
break;
+ case DRSUAPI_DS_NAME_FORMAT_UNKNOWN:
case DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY:
case DRSUAPI_DS_NAME_FORMAT_DNS_DOMAIN:
n_from[i] = NULL;
@@ -148,6 +151,7 @@ static bool test_DsCrackNamesMatrix(struct torture_context *tctx,
default:
n_from[i] = r.out.ctr->ctr1->array[0].result_name;
printf("%s\n", n_from[i]);
+ break;
}
}