Lines Matching refs:dom_res
58 struct ldb_result *dom_res = NULL, *user_res = NULL;
90 ret = ldb_search(sam_ctx, mem_ctx, &dom_res,
97 if (dom_res->count != 1) {
103 if ((dom_res == NULL || dom_res->count == 0) && (domain_guid || domain_sid)) {
123 ret = ldb_search(sam_ctx, mem_ctx, &dom_res,
140 ret = ldb_search(sam_ctx, mem_ctx, &dom_res,
152 } else if (dom_res->count == 1) {
155 if (ldb_dn_compare(ldb_get_default_basedn(sam_ctx), dom_res->msgs[0]->dn) != 0) {
158 } else if (dom_res->count > 1) {
164 if ((dom_res == NULL || dom_res->count == 0)) {
186 dom_res->msgs[0]->dn, LDB_SCOPE_SUBTREE,
195 user, acct_control, ldb_dn_get_linearized(dom_res->msgs[0]->dn),
240 domain_uuid = samdb_result_guid(dom_res->msgs[0], "objectGUID");