From 1fc9c6bf2cf9ac3872114b087dde0cdc9550c438 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 17 Dec 2006 13:05:34 +0000 Subject: r20223: this function is in the torture test now metze (This used to be commit 66c4b42f5f4c48e9c288781208ecdd4849c2f939) --- source4/dsdb/schema/schema_init.c | 54 --------------------------------------- 1 file changed, 54 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index ab7d5b1706..02f2a18517 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -104,60 +104,6 @@ WERROR dsdb_map_int2oid(uint32_t in, TALLOC_CTX *mem_ctx, const char **out) return WERR_DS_NO_MSDS_INTID; } -bool dsdb_map_test(void) -{ - bool ret = true; - WERROR status; - const char *oid; - uint32_t id; - - oid = "1.2.840.113556.1.4.1716"; - status = dsdb_map_oid2int(oid, &id); - if (!W_ERROR_IS_OK(status)) { - DEBUG(0,("%s => %s\n", oid, win_errstr(status))); - ret = false; - } else { - DEBUG(0,("%s => 0x%08X\n", oid, id)); - } - - status = dsdb_map_int2oid(id, NULL, &oid); - if (!W_ERROR_IS_OK(status)) { - DEBUG(0,("0x%08X => %s\n", id, win_errstr(status))); - ret = false; - } else { - DEBUG(0,("0x%08X => %s\n", id, oid)); - } - - oid = "1.2.840.113556.1.4.1716."; - status = dsdb_map_oid2int(oid, &id); - if (!W_ERROR_IS_OK(status)) { - DEBUG(0,("%s => %s\n", oid, win_errstr(status))); - ret = false; - } else { - DEBUG(0,("%s => 0x%08X\n", oid, id)); - } - - oid = "5435.1.2.840.113556.1.4.1716."; - status = dsdb_map_oid2int(oid, &id); - if (!W_ERROR_IS_OK(status)) { - DEBUG(0,("%s => %s\n", oid, win_errstr(status))); - ret = false; - } else { - DEBUG(0,("%s => 0x%08X\n", oid, id)); - } - - id = 0xEF001234; - status = dsdb_map_int2oid(id, NULL, &oid); - if (!W_ERROR_IS_OK(status)) { - DEBUG(0,("0x%08X => %s\n", id, win_errstr(status))); - ret = false; - } else { - DEBUG(0,("0x%08X => %s\n", id, oid)); - } - - return ret; -} - #define GET_STRING(p, elem, strict) do { \ (p)->elem = samdb_result_string(msg, #elem, NULL);\ if (strict && (p)->elem == NULL) { \ -- cgit