Lines Matching defs:sysdb
42 errno_t sysdb_get_ranges(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb,
68 basedn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_TMPL_RANGE_BASE);
73 ret = ldb_search(sysdb->ldb, tmp_ctx, &res,
167 errno_t sysdb_range_create(struct sysdb_ctx *sysdb, struct range_info *range)
194 msg->dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
242 ret = ldb_add(sysdb->ldb, msg);
255 errno_t sysdb_update_ranges(struct sysdb_ctx *sysdb,
275 /* Retrieve all ranges that are currently in sysdb */
276 ret = sysdb_get_ranges(tmp_ctx, sysdb, &cur_range_count,
290 ret = sysdb_transaction_start(sysdb);
298 * - if a range already exists in sysdb, mark it for preservation
299 * - if the range doesn't exist in sysdb, create it
312 ret = sysdb_range_create(sysdb, ranges[c]);
320 /* Now delete all ranges that have been in sysdb prior to
328 dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb,
335 ret = sysdb_delete_entry(sysdb, dn, true);
343 ret = sysdb_transaction_commit(sysdb);
352 sret = sysdb_transaction_cancel(sysdb);