1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/winbindd
Volker Lendecke 63552f1c4c winbind: Fix idmap initialization
The fix is in the sscanf line: %u in the sscanf format mandates the use of
a pointer to an "unsigned". idmap_domain->[low|high]_id are uint32_t. On
little endian 64-bit this might at least put the correct values into
low_id and high_id, but might overwrite the read_only bit set earlier,
depending on structure alignment and packing. On big endian 64-bit,
this will just fail.

Automatic conversion to uint32_t will happen only at assignment, not
when you take a pointer of such a thing.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jan 22 17:58:16 CET 2015 on sn-devel-104
2015-01-22 17:58:16 +01:00
..
idmap_hash Rename module init functions from samba_init_module 2014-04-02 08:50:03 +02:00
idmap_ad.c Rename module init functions from samba_init_module 2014-04-02 08:50:03 +02:00
idmap_autorid_tdb.c autorid: add high_id to range config and fill it where we also fill range->low_id. 2014-04-25 15:35:09 +02:00
idmap_autorid.c idmap_autorid: don't leak state_path onto talloc tos 2014-11-03 23:46:05 +01:00
idmap_ldap.c
idmap_nss.c s3:winbindd: avoid invalid pointer type warnings 2014-11-25 07:25:45 +01:00
idmap_passdb.c idmap: unify passdb *id_to_sid methods 2014-12-03 04:21:09 +01:00
idmap_proto.h
idmap_rfc2307.c idmap_rfc2307: Remove unsed parameter and variable 2014-10-01 19:20:50 +02:00
idmap_rid.c idmap_rid: remove a legacy comment from sid_to_id 2014-04-25 15:35:08 +02:00
idmap_rw.c
idmap_rw.h
idmap_script.c Add a script-only idmap module. 2015-01-08 04:30:32 +01:00
idmap_tdb2.c Rename module init functions from samba_init_module 2014-04-02 08:50:03 +02:00
idmap_tdb_common.c idmap_tdb_common: remove legacy comment. 2014-04-25 15:35:08 +02:00
idmap_tdb_common.h
idmap_tdb.c dbwrap: add a dbwrap_flags argument to db_open() 2014-02-07 16:06:06 +01:00
idmap_util.c
idmap.c winbind: Fix idmap initialization 2015-01-22 17:58:16 +01:00
nss_info_template.c s3-winbind: Don't set the gecos field to NULL. 2014-07-15 16:00:40 +02:00
nss_info.c
wb_dsgetdcname.c winbindd: Allow the AD-DC to call getdcname 2014-07-04 02:52:35 +02:00
wb_fill_pwent.c winbind3: Fix pwent variable substitution 2014-10-03 19:55:08 +02:00
wb_getgrsid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_getpwsid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_gettoken.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_gid2sid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_group_members.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_lookupname.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_lookupsid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_lookupsids.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_lookupuseraliases.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_lookupusergroups.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_next_grent.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_next_pwent.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_ping.c
wb_query_user_list.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_queryuser.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_seqnum.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_seqnums.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
wb_sids2xids.c s3-winbindd: Do not use domain SID from LookupSids for Sids2UnixIDs call 2014-09-29 13:15:18 +02:00
wb_uid2sid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_ads.c idl: Merge NETR_TRUST and LSA_TRUST definitions into one set only in lsa.idl 2014-09-27 01:35:36 +02:00
winbindd_allocate_gid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_allocate_uid.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_async.c
winbindd_cache.c winbindd_cache: don't leak state_path onto talloc tos 2014-11-03 23:46:05 +01:00
winbindd_ccache_access.c auth/gensec: remove tevent_context argument from gensec_update() 2014-03-27 00:36:32 +01:00
winbindd_change_machine_acct.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_check_machine_acct.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_cm.c s3:winbindd: improve logic to use CLDAP for a given domain. 2015-01-05 19:23:39 +01:00
winbindd_cred_cache.c
winbindd_creds.c
winbindd_domain.c
winbindd_dsgetdcname.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_dual_ndr.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_dual_srv.c winbind: Retry after SESSION_EXPIRED error in ping-dc 2015-01-06 02:58:57 +01:00
winbindd_dual.c lib: Split out write_data[_iov] 2014-12-07 00:12:07 +01:00
winbindd_endgrent.c
winbindd_endpwent.c
winbindd_getdcname.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_getgrent.c
winbindd_getgrgid.c
winbindd_getgrnam.c
winbindd_getgroups.c s3:winbind: add a warning DEBUG message when skipping a sid from the mapped GID list 2013-07-29 14:42:27 +02:00
winbindd_getpwent.c
winbindd_getpwnam.c
winbindd_getpwsid.c
winbindd_getpwuid.c
winbindd_getsidaliases.c
winbindd_getuserdomgroups.c
winbindd_getusersids.c
winbindd_gid_to_sid.c
winbindd_group.c
winbindd_idmap.c
winbindd_irpc.c winbindd-irpc: Ensure not to call irpc_send_reply twice on error 2014-08-01 12:11:28 +02:00
winbindd_list_groups.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_list_users.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_locator.c
winbindd_lookupname.c
winbindd_lookuprids.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_lookupsid.c
winbindd_lookupsids.c
winbindd_misc.c idl: Merge NETR_TRUST and LSA_TRUST definitions into one set only in lsa.idl 2014-09-27 01:35:36 +02:00
winbindd_msrpc.c s3:winbindd: avoid invalid pointer type warnings 2014-11-25 07:25:45 +01:00
winbindd_ndr.c idl: Merge NETR_TRUST and LSA_TRUST definitions into one set only in lsa.idl 2014-09-27 01:35:36 +02:00
winbindd_pam_auth_crap.c
winbindd_pam_auth.c
winbindd_pam_chauthtok.c
winbindd_pam_chng_pswd_auth_crap.c
winbindd_pam_logoff.c
winbindd_pam.c s3:winbindd: make use of talloc_string_sub2() in generate_krb5_ccache() 2014-11-25 07:25:45 +01:00
winbindd_ping_dc.c s3:winbindd: use find_domain_from_name_noinit() in winbindd_ping_dc_send() 2014-12-19 13:15:12 +01:00
winbindd_proto.h s3-winbindd: Pass the whole winbindd_domain to invalidate_cm_connection() 2014-10-08 01:09:50 +02:00
winbindd_reconnect.c
winbindd_rpc.c s3:winbindd: avoid invalid pointer type warnings 2014-11-25 07:25:45 +01:00
winbindd_rpc.h
winbindd_samr.c winbindd: Call set_dc_type_and_flags on the internal domain 2014-06-11 10:18:26 +02:00
winbindd_setgrent.c
winbindd_setpwent.c
winbindd_show_sequence.c
winbindd_sid_to_gid.c
winbindd_sid_to_uid.c
winbindd_sids_to_xids.c
winbindd_uid_to_sid.c
winbindd_util.c s3:winbindd: mark our primary as active_directory if possible 2015-01-05 17:01:08 +01:00
winbindd_wins_byip.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd_wins_byname.c librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
winbindd.c winbindd: don't leak state_path onto talloc tos 2014-11-03 23:46:05 +01:00
winbindd.h s3:winbindd: remove unused get[pw|gr]ent_initialized from winbindd_cli_state 2014-07-11 18:46:09 +02:00
wscript_build Add a script-only idmap module. 2015-01-08 04:30:32 +01:00