From ebfc13b452b970e5c676933701819a28b77ac8bf Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Wed, 9 Sep 2009 17:07:27 +0300 Subject: 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. --- source4/torture/rpc/drsuapi_cracknames.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture') 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; } } -- cgit