summaryrefslogtreecommitdiffstats
path: root/server/tools/tools_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/tools_util.c')
-rw-r--r--server/tools/tools_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/tools_util.c b/server/tools/tools_util.c
index 0d3220ee4..b580300b8 100644
--- a/server/tools/tools_util.c
+++ b/server/tools/tools_util.c
@@ -81,7 +81,7 @@ enum id_domain find_domain_for_id(struct tools_ctx *ctx,
if (id < dom->id_min || id > dom->id_max) {
continue;
} else {
- if (strcasecmp(dom->name, "LOCAL") == 0) {
+ if (strcasecmp(dom->provider, "local") == 0) {
*dom_ret = dom;
return ID_IN_LOCAL;
} else if (is_domain_local_legacy(ctx, dom) == 0) {
@@ -100,7 +100,7 @@ enum id_domain find_domain_for_id(struct tools_ctx *ctx,
} else {
/* No ID specified, find LOCAL */
for (dom = ctx->domains; dom; dom = dom->next) {
- if (strcasecmp(dom->name, "LOCAL") == 0) {
+ if (strcasecmp(dom->provider, "local") == 0) {
*dom_ret = dom;
return ID_IN_LOCAL;
}