1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/winbindd
Samuel Cabrero 5fe7536145 winbind: Remove noisy error message in wb_open_internal_pipe()
Before merging the s4 and s3 RPC servers the make_internal_rpc_pipe_p()
function did not fail when the requested interface was not registered in
the calling process because it did not check the return value of
rpc_srv_get_pipe_cmds(). If the interface was not registed, the pointer
to the interface functions was NULL and later, when dispatching a call,
rpcint_dispatch() returned NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE in this
case.

After merging the RPC servers, the rpc_pipe_open_internal() function
will return NT_STATUS_RPC_INTERFACE_NOT_FOUND if the interface is not
registered in the calling process. This causes a noisy error message in
winbind when it tries to open the dssetup pipe to the primary domain and
it is not an AD domain.

The callers of wb_open_internal_pipe() when connecting to the domain
already logs the error at level greather or equal to five. This commit
moves the dupplicated and noisy error message at level zero from
wb_open_internal_pipe() to its callers outside winbindd_cm.c.

This error can be seen in winbindd logs of ad_member and nt4_member test
environments.

[2021/03/01 16:49:38.486004,  0, pid=12456] ../../source3/winbindd/winbindd_cm.c:1893(wb_open_internal_pipe)
  open_internal_pipe: Could not connect to dssetup pipe: NT_STATUS_RPC_INTERFACE_NOT_FOUND

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-03-06 02:20:05 +00:00
..
idmap_hash s3:idmap_hash: reliable return ID_TYPE_BOTH 2021-01-22 11:32:46 +00:00
idmap_ad_nss.c winbindd/idmap: apply const to struct nss_info_methods pointers 2020-10-23 03:25:35 +00:00
idmap_ad.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_autorid_tdb.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
idmap_autorid.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_ldap.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
idmap_nss.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_passdb.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_proto.h winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_rfc2307.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
idmap_rid.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_rw.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_rw.h
idmap_script.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_tdb2.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_tdb_common.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_tdb_common.h
idmap_tdb.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_util.c
idmap.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
nss_info_template.c
nss_info.c winbindd/idmap: apply const to struct nss_info_methods pointers 2020-10-23 03:25:35 +00:00
wb_dsgetdcname.c
wb_getgrsid.c
wb_getpwsid.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
wb_gettoken.c
wb_group_members.c
wb_lookupname.c
wb_lookupsid.c
wb_lookupsids.c
wb_lookupuseraliases.c
wb_lookupusergroups.c
wb_next_grent.c
wb_next_pwent.c
wb_query_group_list.c
wb_query_user_list.c
wb_queryuser.c wb_queryuser: explain why wb_parent_idmap_setup_send/recv is not needed 2020-10-23 03:25:36 +00:00
wb_seqnum.c
wb_seqnums.c
wb_sids2xids.c wb_sids2xids: defer/skip wb_lookupsids* unless we get ID_TYPE_WB_REQUIRE_TYPE 2020-10-23 04:47:26 +00:00
wb_xids2sids.c wb_xids2sids: make use of the new wb_parent_idmap_setup_send/recv() helpers 2020-10-23 03:25:36 +00:00
winbindd_ads.c winbind: Fix a memleak 2020-09-14 13:33:13 +00:00
winbindd_ads.h
winbindd_allocate_gid.c
winbindd_allocate_uid.c
winbindd_async.c
winbindd_cache.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_ccache_access.c
winbindd_change_machine_acct.c
winbindd_check_machine_acct.c
winbindd_cm.c winbind: Remove noisy error message in wb_open_internal_pipe() 2021-03-06 02:20:05 +00:00
winbindd_cred_cache.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_creds.c
winbindd_domain_info.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_domain.c
winbindd_dsgetdcname.c winbind: Align integer types 2020-11-30 22:24:37 +00:00
winbindd_dual_ndr.c librpc: Convert find_interface_by_uuid to search by syntax_id 2021-01-28 16:58:35 +00:00
winbindd_dual_srv.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_dual.c winbind: handle MSG_SMB_CONF_UPDATED in the winbinds children 2021-01-21 21:48:30 +00:00
winbindd_endgrent.c
winbindd_endpwent.c
winbindd_getdcname.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_getgrent.c
winbindd_getgrgid.c winbindd: handling missing idmap in getgrgid() 2020-02-05 17:56:58 +00:00
winbindd_getgrnam.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_getgroups.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
winbindd_getpwent.c
winbindd_getpwnam.c
winbindd_getpwsid.c
winbindd_getpwuid.c
winbindd_getsidaliases.c
winbindd_getuserdomgroups.c
winbindd_getusersids.c
winbindd_gpupdate.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_group.c
winbindd_idmap.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_irpc.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_list_groups.c
winbindd_list_users.c
winbindd_locator.c
winbindd_lookupname.c
winbindd_lookuprids.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_lookupsid.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_lookupsids.c CVE-2020-14323 winbind: Fix invalid lookupsids DoS 2020-10-29 10:25:37 +00:00
winbindd_misc.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_msrpc.c winbind: Return queried domain name from name_to_sid 2019-04-18 17:21:18 +00:00
winbindd_ndr.c
winbindd_pam_auth_crap.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_pam_auth.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_pam_chauthtok.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_pam_chng_pswd_auth_crap.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_pam_logoff.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winbindd_pam.c winbind: remove legacy flags fallback 2021-01-21 22:56:20 +00:00
winbindd_ping_dc.c
winbindd_proto.h winbind: move config-reloading code to winbindd_dual.c 2021-01-21 21:48:30 +00:00
winbindd_reconnect_ads.c winbind: Return queried domain name from name_to_sid 2019-04-18 17:21:18 +00:00
winbindd_reconnect.c winbind: Return queried domain name from name_to_sid 2019-04-18 17:21:18 +00:00
winbindd_rpc.c s3:winbind: Don't abort when receiving a NULL SID 2019-10-16 16:39:42 +00:00
winbindd_rpc.h winbind: Return queried domain name from name_to_sid 2019-04-18 17:21:18 +00:00
winbindd_samr.c winbind: Remove noisy error message in wb_open_internal_pipe() 2021-03-06 02:20:05 +00:00
winbindd_setgrent.c
winbindd_setpwent.c
winbindd_show_sequence.c
winbindd_sids_to_xids.c
winbindd_util.c winbind: move "winbind:ignore domain" logic to a seperate function 2021-01-21 21:48:30 +00:00
winbindd_wins_byip.c s3: libsmb: Convert node_status_query() and associated functions and callers to expect a size_t * return. 2020-09-15 10:09:36 +00:00
winbindd_wins_byname.c s3: libsmb: Convert the WINS and broadcast name functions to return size_t * num addresses. 2020-09-15 10:09:36 +00:00
winbindd_xids_to_sids.c
winbindd.c daemons: Do not notify systemd in child processes started by main samba 2021-03-01 03:50:35 +00:00
winbindd.h winbindd: add generic wb_parent_idmap_setup_send/recv() helpers 2020-10-23 03:25:36 +00:00
wscript_build s3:rpc_server: Do not generate and build s3 RPC server code 2020-03-20 15:36:36 +00:00