mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
winbind: honor WBFLAG_FROM_NSS along with winbind enum users/groups
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Bjoern Jacke <bj@sernet.de>
This commit is contained in:
parent
245b494ceb
commit
f95495e1f7
@ -52,6 +52,11 @@ struct tevent_req *winbindd_list_groups_send(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (request->wb_flags & WBFLAG_FROM_NSS && !lp_winbind_enum_groups()) {
|
||||
tevent_req_done(req);
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
|
||||
/* Ensure null termination */
|
||||
request->domain_name[sizeof(request->domain_name)-1]='\0';
|
||||
|
||||
|
@ -53,6 +53,11 @@ struct tevent_req *winbindd_list_users_send(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (request->wb_flags & WBFLAG_FROM_NSS && !lp_winbind_enum_users()) {
|
||||
tevent_req_done(req);
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
|
||||
/* Ensure null termination */
|
||||
request->domain_name[sizeof(request->domain_name)-1]='\0';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user