summaryrefslogtreecommitdiff
path: root/server/db/sysdb_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/db/sysdb_search.c')
-rw-r--r--server/db/sysdb_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/db/sysdb_search.c b/server/db/sysdb_search.c
index 8b14221d..24ee5cf1 100644
--- a/server/db/sysdb_search.c
+++ b/server/db/sysdb_search.c
@@ -579,7 +579,7 @@ static void initgr_mem_legacy(struct sysdb_search_ctx *sctx)
return request_ldberror(sctx, LDB_ERR_OPERATIONS_ERROR);
}
- userid = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_PW_NAME, NULL);
+ userid = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_NAME, NULL);
if (!userid) {
return request_ldberror(sctx, LDB_ERR_OPERATIONS_ERROR);
}