summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-17 13:05:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:24 -0500
commit1fc9c6bf2cf9ac3872114b087dde0cdc9550c438 (patch)
treebd4005164816b719e82feda54dcdc61468f79626 /source4/dsdb/schema
parent56d768842e2761c42d6b3744f7479352456a90a4 (diff)
downloadsamba-1fc9c6bf2cf9ac3872114b087dde0cdc9550c438.tar.gz
samba-1fc9c6bf2cf9ac3872114b087dde0cdc9550c438.tar.bz2
samba-1fc9c6bf2cf9ac3872114b087dde0cdc9550c438.zip
r20223: this function is in the torture test now
metze (This used to be commit 66c4b42f5f4c48e9c288781208ecdd4849c2f939)
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_init.c54
1 files changed, 0 insertions, 54 deletions
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) { \