1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source3/winbindd
Samuel Cabrero 8d14714cc5 s3: winbind: Remove fstring from wb_acct_info struct
The group enumeration backend functions try to allocate an array of
wb_acct_info structs with a number of elements equal to the number of
groups. In domains with a large number of groups this allocation may
fail due to the size of the chunk.

Found while trying to enumerate the groups in a domain with more than
700k groups.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-11-01 01:59:10 +01:00
..
idmap_hash idmap_hash: Align integer types 2018-06-19 08:59:11 +02:00
idmap_ad_nss.c idmap: Fix CID 1363261 Resource leak 2018-04-07 02:11:20 +02:00
idmap_ad.c libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
idmap_autorid_tdb.c idmap_autorid: Simplify idmap_autorid_loadconfig 2016-12-16 21:30:28 +01:00
idmap_autorid.c lib: Pass mem_ctx to state_path() 2018-08-17 11:30:11 +02:00
idmap_ldap.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
idmap_nss.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
idmap_passdb.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
idmap_proto.h winbindd: pass domain SID to wbint_UnixIDs2Sids 2017-10-10 15:51:27 +02:00
idmap_rfc2307.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
idmap_rid.c winbindd: idmap_rid: error code for failing id-to-sid mapping request 2017-10-10 19:57:37 +02:00
idmap_rw.c
idmap_rw.h
idmap_script.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
idmap_tdb2.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
idmap_tdb_common.c idmap: Make pointer initialization explicit 2018-07-26 22:44:24 +02:00
idmap_tdb_common.h
idmap_tdb.c lib: Pass mem_ctx to state_path() 2018-08-17 11:30:11 +02:00
idmap_util.c idmap_rfc2307: Don't stop after 30 entries 2017-05-08 21:08:23 +02:00
idmap.c winbindd: pass domain SID to wbint_UnixIDs2Sids 2017-10-10 15:51:27 +02:00
nss_info_template.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
nss_info.c s3:winbind: Fix memory leak in nss_init() 2018-08-13 19:46:08 +02:00
wb_dsgetdcname.c lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
wb_getgrsid.c winbindd: remove 'winbind trusted domains only' handling 2018-01-10 01:01:23 +01:00
wb_getpwsid.c s3:winbind: Fix regression introduced with bso #12851 2018-06-21 01:03:52 +02:00
wb_gettoken.c Re-enable token groups fallback 2017-03-06 19:18:31 +01:00
wb_group_members.c winbind: Remove the use of "talloc_dict" 2017-09-30 08:01:24 +02:00
wb_lookupname.c winbind: Pass upn unmodified to lookup names 2018-05-11 09:07:36 +02:00
wb_lookupsid.c winbindd: remove bogus fallback to the forest root in wb_lookupsid*() 2017-03-11 21:05:09 +01:00
wb_lookupsids.c winbindd: make use of talloc_zero_array() in wb_lookupsids*() 2018-02-21 14:19:17 +01:00
wb_lookupuseraliases.c
wb_lookupusergroups.c winbindd: find the domain based on the sid within wb_lookupusergroups_send() 2017-03-06 15:09:18 +01:00
wb_next_grent.c winbind: Remove the use of "talloc_dict" 2017-09-30 08:01:24 +02:00
wb_next_pwent.c winbind: Go throught wb_getpwsid for listing users 2017-01-02 18:04:14 +01:00
wb_query_group_list.c
wb_query_user_list.c s3-winbindd: use fill_domain_username_talloc() in winbind. 2018-05-17 17:30:08 +02:00
wb_queryuser.c winbindd: remove 'winbind trusted domains only' handling 2018-01-10 01:01:23 +01:00
wb_seqnum.c
wb_seqnums.c winbindd: Use talloc_zero_array for consistency with other winbindd_domain allocators 2018-03-24 07:21:37 +01:00
wb_sids2xids.c winbind: add idmap_child_handle() and use it instead of child->binding_handle 2018-02-23 04:09:18 +01:00
wb_xids2sids.c winbind: Pass upn unmodified to lookup names 2018-05-11 09:07:36 +02:00
winbindd_ads.c s3: winbind: Remove fstring from wb_acct_info struct 2018-11-01 01:59:10 +01:00
winbindd_ads.h winbindd: Give winbindd_ads.c its own header 2017-05-17 01:47:17 +02:00
winbindd_allocate_gid.c winbind: add idmap_child_handle() and use it instead of child->binding_handle 2018-02-23 04:09:18 +01:00
winbindd_allocate_uid.c winbind: add idmap_child_handle() and use it instead of child->binding_handle 2018-02-23 04:09:18 +01:00
winbindd_async.c
winbindd_cache.c s3: winbind: Remove fstring from wb_acct_info struct 2018-11-01 01:59:10 +01:00
winbindd_ccache_access.c winbindd: winbindd_ccache_save() -> bool_dispatch_table 2018-05-17 08:44:19 +02:00
winbindd_change_machine_acct.c
winbindd_check_machine_acct.c
winbindd_cm.c lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
winbindd_cred_cache.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_creds.c winbind: Fix UPN handling in parse_domain_user() 2018-05-11 09:07:37 +02:00
winbindd_domain_info.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_domain.c
winbindd_dsgetdcname.c winbind: add locator_child_handle() and use it instead of child->binding_handle 2018-02-23 04:09:18 +01:00
winbindd_dual_ndr.c winbind: Maintain a binding handle per domain and always go via wb_domain_request_send() 2018-02-23 04:09:18 +01:00
winbindd_dual_srv.c s3: Rename server_messaging_context() to global_messaging_context() 2018-09-07 17:26:17 +02:00
winbindd_dual.c s3: Rename server_messaging_context() to global_messaging_context() 2018-09-07 17:26:17 +02:00
winbindd_endgrent.c
winbindd_endpwent.c
winbindd_getdcname.c
winbindd_getgrent.c winbind: cleanup winbindd_cli_state->grent_state if winbindd_getgrent_recv() returns an error 2018-02-23 04:09:18 +01:00
winbindd_getgrgid.c winbind: Remove the use of "talloc_dict" 2017-09-30 08:01:24 +02:00
winbindd_getgrnam.c winbind: Fix UPN handling in parse_domain_user() 2018-05-11 09:07:37 +02:00
winbindd_getgroups.c winbind: Fix UPN handling in parse_domain_user() 2018-05-11 09:07:37 +02:00
winbindd_getpwent.c winbind: cleanup winbindd_cli_state->pwent_state if winbindd_getpwent_recv() returns an error 2018-02-23 04:09:18 +01:00
winbindd_getpwnam.c winbind: Fix UPN handling in parse_domain_user() 2018-05-11 09:07:37 +02:00
winbindd_getpwsid.c
winbindd_getpwuid.c winbind: Use xids2sids in getpwuid 2016-02-22 20:29:15 +01:00
winbindd_getsidaliases.c
winbindd_getuserdomgroups.c winbind: Use wb_gettoken in getuserdomgroups 2017-01-04 12:22:12 +01:00
winbindd_getusersids.c winbind: Add "expand_local_aliases" to wb_gettoken 2017-01-04 12:22:12 +01:00
winbindd_gpupdate.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_group.c s3-winbindd: use fill_domain_username_talloc() in winbind. 2018-05-17 17:30:08 +02:00
winbindd_idmap.c winbind: add idmap_child_handle() and use it instead of child->binding_handle 2018-02-23 04:09:18 +01:00
winbindd_irpc.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_list_groups.c s3-winbindd: use fill_domain_username_talloc() in winbind. 2018-05-17 17:30:08 +02:00
winbindd_list_users.c s3:winbind: work around coverity false positive. 2017-02-23 23:54:48 +01:00
winbindd_locator.c winbind: add locator_child_handle() and use it instead of child->binding_handle 2018-02-23 04:09:18 +01:00
winbindd_lookupname.c winbind: Pass upn unmodified to lookup names 2018-05-11 09:07:36 +02:00
winbindd_lookuprids.c
winbindd_lookupsid.c
winbindd_lookupsids.c
winbindd_misc.c winbind: Align integer types 2018-07-24 20:36:50 +02:00
winbindd_msrpc.c winbindd: don't force using LSA_LOOKUP_NAMES_ALL for non workstation trusts. 2018-02-10 08:35:16 +01:00
winbindd_ndr.c winbind: Remove the "winbindd_children" global 2018-03-01 09:53:46 +01:00
winbindd_pam_auth_crap.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_pam_auth.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_pam_chauthtok.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_pam_chng_pswd_auth_crap.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_pam_logoff.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_pam.c s3-winbindd: use fill_domain_username_talloc() in winbind. 2018-05-17 17:30:08 +02:00
winbindd_ping_dc.c winbindd: Fix winbindd_ping_dc_recv 2018-06-16 01:06:36 +02:00
winbindd_proto.h s3-winbindd: remove unused fill_domain_username() 2018-05-17 17:30:09 +02:00
winbindd_reconnect_ads.c winbindd: add and use ldap_reconnect_need_retry() in winbindd_reconnect_ads.c 2018-03-15 15:46:09 +01:00
winbindd_reconnect.c winbindd: call dcerpc_binding_handle_is_connected() from reset_cm_connection_on_error() 2018-03-15 15:46:09 +01:00
winbindd_rpc.c s3: winbind: Remove fstring from wb_acct_info struct 2018-11-01 01:59:10 +01:00
winbindd_rpc.h Revert "winbind: Remove rpc_lookup_usergroups" 2017-03-06 15:09:17 +01:00
winbindd_samr.c winbindd: Do re-connect if the RPC call fails in the passdb case 2018-03-24 02:31:15 +01:00
winbindd_setgrent.c winbind: call lp_winbind_enum_{users,groups}() already in set{pw,gr}ent() 2018-02-23 04:09:18 +01:00
winbindd_setpwent.c winbind: call lp_winbind_enum_{users,groups}() already in set{pw,gr}ent() 2018-02-23 04:09:18 +01:00
winbindd_show_sequence.c
winbindd_sids_to_xids.c
winbindd_util.c s3: Rename server_event_context() to global_event_context() 2018-09-07 17:26:17 +02:00
winbindd_wins_byip.c libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
winbindd_wins_byname.c libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
winbindd_xids_to_sids.c winbind: Expose WINBINDD_XIDS_TO_SIDS externally 2016-02-22 20:29:15 +01:00
winbindd.c s3:winbind: Check return code of initialize_password_db() 2018-10-29 20:09:25 +01:00
winbindd.h s3: winbind: Remove fstring from wb_acct_info struct 2018-11-01 01:59:10 +01:00
wscript_build winbindd: Make DOMAIN_INFO a proper async request 2018-05-17 08:44:19 +02:00