Lines Matching defs:domain
28 sysdb_idmap_dn(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain,
40 DEBUG(SSSDBG_TRACE_ALL, SYSDB_TMPL_IDMAP"\n", clean_sid, domain->name);
42 dn = ldb_dn_new_fmt(mem_ctx, domain->sysdb->ldb, SYSDB_TMPL_IDMAP,
43 clean_sid, domain->name);
50 sysdb_idmap_store_mapping(struct sss_domain_info *domain,
70 dn = sysdb_idmap_dn(tmp_ctx, domain, dom_sid);
83 ret = sysdb_transaction_start(domain->sysdb);
93 ret = sysdb_search_entry(tmp_ctx, domain->sysdb, dn, LDB_SCOPE_BASE,
123 /* Add the domain objectSID */
138 /* Add the domain name */
169 lret = ldb_add(domain->sysdb->ldb, update_msg);
205 * if we're told the real name of a domain and want to
211 "Could not identify original domain name of SID [%s]\n",
228 "Changing domain name of SID [%s] from [%s] to [%s]\n",
247 lret = ldb_modify(domain->sysdb->ldb, update_msg);
251 ldb_strerror(lret), lret, ldb_errstring(domain->sysdb->ldb));
257 ret = sysdb_transaction_commit(domain->sysdb);
267 sret = sysdb_transaction_cancel(domain->sysdb);
279 struct sss_domain_info *domain,
291 DEBUG(SSSDBG_TRACE_ALL, SYSDB_TMPL_IDMAP_BASE"\n", domain->name);
293 base_dn = ldb_dn_new_fmt(tmp_ctx, domain->sysdb->ldb,
294 SYSDB_TMPL_IDMAP_BASE, domain->name);
300 SSS_LDB_SEARCH(ret, domain->sysdb->ldb, tmp_ctx, &res, base_dn,