summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-21 20:00:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:36 -0500
commitbd587c5cd12959f1a1fc37108d9396a7585e5f80 (patch)
treebc678ae92c86c8a7f3a4fe3daf13b74d0a950398 /source4/torture
parentaae7773e2aa6327d48c6607c043f24a9815995cd (diff)
downloadsamba-bd587c5cd12959f1a1fc37108d9396a7585e5f80.tar.gz
samba-bd587c5cd12959f1a1fc37108d9396a7585e5f80.tar.bz2
samba-bd587c5cd12959f1a1fc37108d9396a7585e5f80.zip
r20305: as the oid mapping table is dynnamic it makes no sense
to test the mappings when we got the schema via LDAP as we don't get the mappings metze (This used to be commit cfcd6285e1a5367ea4cfa9190658085ed65910b5)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/ldap/schema.c119
1 files changed, 0 insertions, 119 deletions
diff --git a/source4/torture/ldap/schema.c b/source4/torture/ldap/schema.c
index 207ca6f9a0..4186301c3b 100644
--- a/source4/torture/ldap/schema.c
+++ b/source4/torture/ldap/schema.c
@@ -351,123 +351,6 @@ static BOOL test_dump_sorted_syntax(struct ldb_context *ldb, struct test_rootDSE
return True;
}
-
-static BOOL test_dsdb_map(struct torture_context *torture)
-{
- 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, torture, &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.65535";
- 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, torture, &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.5.7000";
- 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 = "1.2.840.113556.1.5.7000.5";
- 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 = "1.2.840.113556.1.4.1716.";
- status = dsdb_map_oid2int(oid, &id);
- if (!W_ERROR_EQUAL(status, WERR_INVALID_PARAM)) {
- DEBUG(0,("%s => %s\n", oid, win_errstr(status)));
- ret = False;
- } else {
- DEBUG(0,("%s => %s (ok!)\n", oid, win_errstr(status)));
- }
-
- oid = "1.2.840.113556.1.4.65535.34";
- status = dsdb_map_oid2int(oid, &id);
- if (!W_ERROR_EQUAL(status, WERR_DS_NO_MSDS_INTID)) {
- DEBUG(0,("%s => %s\n", oid, win_errstr(status)));
- ret = False;
- } else {
- DEBUG(0,("%s => %s (ok!)\n", oid, win_errstr(status)));
- }
-
- oid = "1.2.840.113556.1.4..";
- status = dsdb_map_oid2int(oid, &id);
- if (!W_ERROR_EQUAL(status, WERR_INVALID_PARAM)) {
- DEBUG(0,("%s => %s\n", oid, win_errstr(status)));
- ret = False;
- } else {
- DEBUG(0,("%s => %s (ok!)\n", oid, win_errstr(status)));
- }
-
- oid = "1.2.840.113556.1.4.65536";
- status = dsdb_map_oid2int(oid, &id);
- if (!W_ERROR_EQUAL(status, WERR_INVALID_PARAM)) {
- DEBUG(0,("%s => %s\n", oid, win_errstr(status)));
- ret = False;
- } else {
- DEBUG(0,("%s => %s (ok!)\n", oid, win_errstr(status)));
- }
-
- oid = "5435.1.2.840.113556.1.4.";
- status = dsdb_map_oid2int(oid, &id);
- if (!W_ERROR_EQUAL(status, WERR_DS_NO_MSDS_INTID)) {
- DEBUG(0,("%s => %s\n", oid, win_errstr(status)));
- ret = False;
- } else {
- DEBUG(0,("%s => %s (ok!)\n", oid, win_errstr(status)));
- }
-
- id = 0xEF001234;
- status = dsdb_map_int2oid(id, torture, &oid);
- if (!W_ERROR_EQUAL(status, WERR_DS_NO_MSDS_INTID)) {
- DEBUG(0,("0x%08X => %s\n", id, win_errstr(status)));
- ret = False;
- } else {
- DEBUG(0,("0x%08X => %s (ok!)\n", id, win_errstr(status)));
- }
-
- return ret;
-}
-
BOOL torture_ldap_schema(struct torture_context *torture)
{
struct ldb_context *ldb;
@@ -497,8 +380,6 @@ BOOL torture_ldap_schema(struct torture_context *torture)
ret &= test_dump_contructed(ldb, &rootDSE, schema);
ret &= test_dump_sorted_syntax(ldb, &rootDSE, schema);
- ret &= test_dsdb_map(torture);
-
failed:
return ret;
}