1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/winbindd
Christof Schmitt 7cd99b4207 idmap_rfc2307: Fix handling of cn realm
When cn_realm was set, the idmap_rfc2307 module tried to determine the
realm from the AD connection struct. In case of referring to a different
domain using the ldap_domain config option, the wrong realm was used.

Since the LDAP-server case already requires having the realm in the
config, extend that to the AD case to fix the issue: Having LDAP records
with @realm in the cn, now always requires having the realm in the
config.

Now cn_realm and ldap_realm always would have to be specified together,
so replace the two options with a single "realm" option.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2015-12-14 12:37:08 +01:00
..
idmap_hash s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap; 2015-08-20 16:06:21 +02:00
idmap_ad.c s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap; 2015-08-20 16:06:21 +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 s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap; 2015-08-20 16:06:21 +02: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: Remove "domname" from idmap_gid_to_sid 2015-08-24 16:16:12 +02:00
idmap_rfc2307.c idmap_rfc2307: Fix handling of cn realm 2015-12-14 12:37:08 +01:00
idmap_rid.c s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap; 2015-08-20 16:06:21 +02:00
idmap_rw.c
idmap_rw.h
idmap_script.c s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap; 2015-08-20 16:06:21 +02:00
idmap_tdb2.c s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap; 2015-08-20 16:06:21 +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 Convert the few instances of int32 there were to int32_t. 2015-05-16 03:09:12 +02:00
idmap_util.c idmap: Remove "domname" from idmap_gid_to_sid 2015-08-24 16:16:12 +02:00
idmap.c winbind: Don't crash on invalid idmap configs 2015-11-19 20:16:44 +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 winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01:00
wb_getgrsid.c winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01: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 winbind: Do not look for the domain in wb_gid2sid 2015-08-24 16:16:12 +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 s3-winbind: Fix chached user group lookup of trusted domains. 2015-03-09 19:23:25 +01:00
wb_next_grent.c s3:winbind:grent: don't stop when querying one domain fails. 2015-03-16 20:26:51 +01:00
wb_next_pwent.c s3:winbind:pwent: refactor duplication into wb_next_pwent_send_do() 2015-03-16 20:26:51 +01:00
wb_ping.c
wb_query_group_list.c s3:winbind: add wb_query_group_list module - async query group list 2015-03-16 20:26:51 +01:00
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 winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01:00
wb_uid2sid.c winbind: Do not look for the domain in wb_uid2sid 2015-08-24 16:16:12 +02:00
winbindd_ads.c Fix various spelling errors 2015-11-06 13:43:45 +01: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 Fix various spelling errors 2015-11-06 13:43:45 +01:00
winbindd_ccache_access.c Change all uint32/16/8 to 32_t/16_t/8_t in winbindd. 2015-04-29 23:42:20 +02: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 winbindd: Fix CID 1273310 Remove structurally dead code 2015-09-09 18:33:07 +02:00
winbindd_cred_cache.c winbind: Don't delete an existing krb5 ticket on cached logon. 2015-09-04 01:35:16 +02:00
winbindd_creds.c Last lot of convert uint32 to uint32_t in winbindd, I promise. 2015-05-06 07:03:27 +02:00
winbindd_domain.c
winbindd_dsgetdcname.c winbind: Simplify winbindd_dsgetdcname_recv 2015-02-27 01:16:10 +01: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 idmap: Remove "domname" from idmap_gid_to_sid 2015-08-24 16:16:12 +02:00
winbindd_dual.c lib: Move sys_rw* to lib/util 2015-10-13 01:23:07 +02: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 Change all uint32/16/8 to 32_t/16_t/8_t in winbindd. 2015-04-29 23:42:20 +02:00
winbindd_getgrnam.c Last lot of convert uint32 to uint32_t in winbindd, I promise. 2015-05-06 07:03:27 +02:00
winbindd_getgroups.c winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01: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 s3:winbindd: add wb_irpc_GetForestTrustInformation() 2015-07-08 18:38:22 +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 Fix various spelling errors 2015-11-06 13:43: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 Fix various spelling errors 2015-11-06 13:43: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 winbindd: add service routines to support a sorted client list 2015-07-15 22:41:13 +02:00
winbindd_reconnect.c Change all uint32/16/8 to 32_t/16_t/8_t in winbindd. 2015-04-29 23:42:20 +02:00
winbindd_rpc.c s3:winbindd: initialize dst->primary_gid with (gid_t)-1 2015-07-17 19:06:08 +02:00
winbindd_rpc.h
winbindd_samr.c winbind: Fix CID 1035545 Uninitialized scalar variable 2015-05-06 18:24:01 +02:00
winbindd_setgrent.c
winbindd_setpwent.c
winbindd_show_sequence.c
winbindd_sid_to_gid.c winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01:00
winbindd_sid_to_uid.c winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01:00
winbindd_sids_to_xids.c winbind: Make wb_sids2xids_recv work on an array 2015-03-07 15:28:59 +01:00
winbindd_uid_to_sid.c
winbindd_util.c winbind: Remove "have_idmap_config" from winbindd_domain 2015-08-24 19:19:31 +02: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: Remove reference to procid_self() 2015-10-19 12:09:10 +02:00
winbindd.h winbind: Remove "have_idmap_config" from winbindd_domain 2015-08-24 19:19:31 +02:00
wscript_build s3:idmap: we need to allow undefined symbols in idmap_tdb 2015-08-20 16:06:20 +02:00