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 7261690 commit e0849ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/db/sysdb_views.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,13 @@ 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
};
struct ldb_message **msgs;

tmp_ctx = talloc_new(NULL);
Expand Down

0 comments on commit e0849ef

Please sign in to comment.