summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-12-18 03:53:13 +0200
committerAndrew Tridgell <tridge@samba.org>2009-12-21 23:43:51 +1100
commitd9606d64ddad4e593b02310b392cd11ff4114aa1 (patch)
tree34dcebb1de3e566ac0a45ab687403b4b0067f07b /source4/dsdb
parent03a1451bbc663a4dbb102d5e150b92acbe7f9599 (diff)
downloadsamba-d9606d64ddad4e593b02310b392cd11ff4114aa1.tar.gz
samba-d9606d64ddad4e593b02310b392cd11ff4114aa1.tar.bz2
samba-d9606d64ddad4e593b02310b392cd11ff4114aa1.zip
s4-drs: Fix bug - prefixMap is not updated when adding new OIDs.
The bug is that prefixMap is updated only memory when adding new Classs/Attribute that has and OID not in prefixMap already. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/schema_data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_data.c b/source4/dsdb/samdb/ldb_modules/schema_data.c
index ed10ae6d69..dfb322225a 100644
--- a/source4/dsdb/samdb/ldb_modules/schema_data.c
+++ b/source4/dsdb/samdb/ldb_modules/schema_data.c
@@ -140,7 +140,6 @@ static int schema_data_add(struct ldb_module *module, struct ldb_request *req)
const struct ldb_val *governsID = NULL;
const char *oid_attr = NULL;
const char *oid = NULL;
- uint32_t attid;
WERROR status;
ldb = ldb_module_get_ctx(module);
@@ -184,7 +183,7 @@ static int schema_data_add(struct ldb_module *module, struct ldb_request *req)
return LDB_ERR_OPERATIONS_ERROR;
}
- status = dsdb_schema_pfm_make_attid(schema->prefixmap, oid, &attid);
+ status = dsdb_schema_pfm_find_oid(schema->prefixmap, oid, NULL);
if (W_ERROR_IS_OK(status)) {
return ldb_next_request(module, req);
} else if (!W_ERROR_EQUAL(WERR_DS_NO_MSDS_INTID, status)) {