mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
dsdb: Provide proper errors when dsdb_schema_set_indices_and_attributes fails
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
committed by
Garming Sam
parent
ee77759ed5
commit
1ff09f0f82
@ -184,6 +184,8 @@ int dsdb_schema_set_indices_and_attributes(struct ldb_context *ldb,
|
||||
ret = LDB_SUCCESS;
|
||||
}
|
||||
if (ret != LDB_SUCCESS) {
|
||||
DBG_ERR("Failed to set schema into @ATTRIBUTES: %s\n",
|
||||
ldb_errstring(ldb));
|
||||
talloc_free(mem_ctx);
|
||||
return ret;
|
||||
}
|
||||
@ -216,6 +218,12 @@ int dsdb_schema_set_indices_and_attributes(struct ldb_context *ldb,
|
||||
/* We might be on a read-only DB */
|
||||
ret = LDB_SUCCESS;
|
||||
}
|
||||
|
||||
if (ret != LDB_SUCCESS) {
|
||||
DBG_ERR("Failed to set schema into @INDEXLIST: %s\n",
|
||||
ldb_errstring(ldb));
|
||||
}
|
||||
|
||||
talloc_free(mem_ctx);
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user