mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s4:dsdb Use the new flags to dsdb_module_search in schema_load
This loads the defaultObjectCategory DN as an extended DN, so we can apply it, with the associated GUID, when setting this on records in the objectClass module. Previously we would not store the extended DN components for objectCategory. Andrew Bartlett
This commit is contained in:
parent
58ded23b86
commit
6710becbd4
@ -69,7 +69,7 @@ static int dsdb_schema_from_schema_dn(TALLOC_CTX *mem_ctx, struct ldb_module *mo
|
|||||||
* setup the prefix mappings and schema info
|
* setup the prefix mappings and schema info
|
||||||
*/
|
*/
|
||||||
ret = dsdb_module_search_dn(module, tmp_ctx, &schema_res,
|
ret = dsdb_module_search_dn(module, tmp_ctx, &schema_res,
|
||||||
schema_dn, schema_attrs);
|
schema_dn, schema_attrs, 0);
|
||||||
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
|
||||||
goto failed;
|
goto failed;
|
||||||
} else if (ret != LDB_SUCCESS) {
|
} else if (ret != LDB_SUCCESS) {
|
||||||
@ -84,6 +84,7 @@ static int dsdb_schema_from_schema_dn(TALLOC_CTX *mem_ctx, struct ldb_module *mo
|
|||||||
*/
|
*/
|
||||||
ret = dsdb_module_search(module, tmp_ctx, &a_res,
|
ret = dsdb_module_search(module, tmp_ctx, &a_res,
|
||||||
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
|
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
|
||||||
|
0,
|
||||||
"(objectClass=attributeSchema)");
|
"(objectClass=attributeSchema)");
|
||||||
if (ret != LDB_SUCCESS) {
|
if (ret != LDB_SUCCESS) {
|
||||||
ldb_asprintf_errstring(ldb,
|
ldb_asprintf_errstring(ldb,
|
||||||
@ -97,6 +98,7 @@ static int dsdb_schema_from_schema_dn(TALLOC_CTX *mem_ctx, struct ldb_module *mo
|
|||||||
*/
|
*/
|
||||||
ret = dsdb_module_search(module, tmp_ctx, &c_res,
|
ret = dsdb_module_search(module, tmp_ctx, &c_res,
|
||||||
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
|
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
|
||||||
|
DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT,
|
||||||
"(objectClass=classSchema)");
|
"(objectClass=classSchema)");
|
||||||
if (ret != LDB_SUCCESS) {
|
if (ret != LDB_SUCCESS) {
|
||||||
ldb_asprintf_errstring(ldb,
|
ldb_asprintf_errstring(ldb,
|
||||||
|
Loading…
Reference in New Issue
Block a user