diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-01-22 19:07:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:02 -0500 |
commit | a00bd47bfa0afeaaf0b8db511f7fed06bb557b6f (patch) | |
tree | f71f5ea30f7618c3dc39ca6e628433e111e82346 /source4/dsdb | |
parent | 9de1b173b48ef0d4d6d8b3e010d291edcbac47ed (diff) | |
download | samba-a00bd47bfa0afeaaf0b8db511f7fed06bb557b6f.tar.gz samba-a00bd47bfa0afeaaf0b8db511f7fed06bb557b6f.tar.bz2 samba-a00bd47bfa0afeaaf0b8db511f7fed06bb557b6f.zip |
r20957: a value of FF0000000000000000000000000000000000000000 isn't stored as schemaInfo
so we need to use it as value if nothing is stored
metze
(This used to be commit cd326134079375fc83640444d6323a5cbe7c02ee)
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_fsmo.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c index deba2b7d88..231042fe66 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c +++ b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c @@ -42,6 +42,7 @@ static int schema_fsmo_init(struct ldb_module *module) struct ldb_result *schema_res; const struct ldb_val *prefix_val; const struct ldb_val *info_val; + struct ldb_val info_val_default; struct ldb_result *a_res; struct ldb_result *c_res; uint32_t i; @@ -116,10 +117,13 @@ static int schema_fsmo_init(struct ldb_module *module) } info_val = ldb_msg_find_ldb_val(schema_res->msgs[0], "schemaInfo"); if (!info_val) { - ldb_debug_set(module->ldb, LDB_DEBUG_FATAL, - "schema_fsmo_init: no schemaInfo attribute found\n"); - talloc_free(mem_ctx); - return LDB_ERR_CONSTRAINT_VIOLATION; + info_val_default = strhex_to_data_blob("FF0000000000000000000000000000000000000000"); + if (!info_val_default.data) { + ldb_oom(module->ldb); + return LDB_ERR_OPERATIONS_ERROR; + } + talloc_steal(mem_ctx, info_val_default.data); + info_val = &info_val_default; } status = dsdb_load_oid_mappings_ldb(schema, prefix_val, info_val); |