static NTSTATUS idmap_tdb_init_hwm(struct idmap_domain *dom)
{
- uint32_t low_uid;
- uint32_t low_gid;
+ uint32_t low_uid = 0;
+ uint32_t low_gid = 0;
bool update_uid = false;
bool update_gid = false;
struct idmap_tdb_common_context *ctx;
NTSTATUS status;
+DEBUG(0, ("OBNOX - idmap_tdb_init_hwm enter\n"));
+
ctx = talloc_get_type(dom->private_data,
struct idmap_tdb_common_context);
update_uid = true;
}
+DEBUG(0, ("OBNOX - idmap_tdb_init_hwm fetched hwm_user: %d (%s), resetting to %d: %s\n", (int)low_uid, nt_errstr(status), (int)dom->low_id, update_uid?"yes":"no"));
+
status = dbwrap_fetch_uint32_bystring(ctx->db, HWM_GROUP, &low_gid);
if (!NT_STATUS_IS_OK(status) || low_gid < dom->low_id) {
update_gid = true;
}
+DEBUG(0, ("OBNOX - idmap_tdb_init_hwm fetched hwm_group: %d (%s), resetting to %d: %s\n", (int)low_gid, nt_errstr(status), (int)dom->low_id, update_gid?"yes":"no"));
+
if (!update_uid && !update_gid) {
return NT_STATUS_OK;
}
bool config_error = false;
struct idmap_tdb_common_context *ctx;
+DEBUG(0, ("OBNOX - idmap_tdb_open_db enter\n"));
+
ctx = talloc_get_type(dom->private_data,
struct idmap_tdb_common_context);