Skip to content

Commit

Permalink
SYSDB: update in get_user_members_recursively()
Browse files Browse the repository at this point in the history
Don't read unneeded attributes.
  • Loading branch information
alexey-tikhonov committed Feb 18, 2025
1 parent 50b6c98 commit 538192e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/db/sysdb_views.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,14 @@ static errno_t get_user_members_recursively(TALLOC_CTX *mem_ctx,
struct ldb_dn *base_dn;
char *filter;
char *sanitized_name;
const char *attrs[] = SYSDB_PW_ATTRS;
const char *attrs[] =
{
SYSDB_UIDNUM,
SYSDB_OVERRIDE_DN,
SYSDB_NAME,
SYSDB_DEFAULT_OVERRIDE_NAME,
NULL
};
struct ldb_message **msgs;

tmp_ctx = talloc_new(NULL);
Expand Down

0 comments on commit 538192e

Please sign in to comment.