1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +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:
Stefan Metzmacher 2018-12-20 10:25:01 -06:00 committed by Bjoern Jacke
parent 245b494ceb
commit f95495e1f7
2 changed files with 10 additions and 0 deletions

View File

@ -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';

View File

@ -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';