1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s4-dsdb_schema: We need base_dn in Schema's shallow copy too

This commit is contained in:
Kamen Mazdrashki 2010-12-10 04:08:58 +02:00
parent 3a8fa09c4f
commit 2b74838c14

View File

@ -57,11 +57,17 @@ struct dsdb_schema *dsdb_schema_copy_shallow(TALLOC_CTX *mem_ctx,
return NULL;
}
/* schema base_dn */
schema_copy->base_dn = ldb_dn_copy(schema_copy, schema->base_dn);
if (!schema_copy->base_dn) {
goto failed;
}
/* copy prexiMap & schemaInfo */
schema_copy->prefixmap = dsdb_schema_pfm_copy_shallow(schema_copy,
schema->prefixmap);
if (!schema_copy->prefixmap) {
return NULL;
goto failed;
}
schema_copy->schema_info = talloc_strdup(schema_copy, schema->schema_info);