Bug 12738 - When connecting to itself, Samba should be IPv6 clean
Summary: When connecting to itself, Samba should be IPv6 clean
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: DCE-RPCs and pipes (show other bugs)
Version: 4.6.2
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-10 07:20 UTC by Alexander Bokovoy
Modified: 2021-02-26 14:39 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bokovoy 2017-04-10 07:20:07 UTC
There are still areas where internal DCE-RPC connection implies presence of IPv4 stack and addresses. This wouldn't work in pure IPv6 configuration.

source3/librpc/rpc/dcerpc_ep.c:         rc = tsocket_address_inet_from_strings(tmp_ctx,
source3/librpc/rpc/dcerpc_ep.c-                                                "ip",
source3/librpc/rpc/dcerpc_ep.c-                                                "127.0.0.1",
--
source3/rpc_client/cli_winreg_int.c:    rc = tsocket_address_inet_from_strings(mem_ctx,
source3/rpc_client/cli_winreg_int.c-                                           "ip",
source3/rpc_client/cli_winreg_int.c-                                           "127.0.0.1",
--
source3/rpc_server/netlogon/srv_netlog_nt.c:    rc = tsocket_address_inet_from_strings(mem_ctx,
source3/rpc_server/netlogon/srv_netlog_nt.c-                                           "ip",
source3/rpc_server/netlogon/srv_netlog_nt.c-                                           "127.0.0.1",
--
source3/rpc_server/netlogon/srv_netlog_nt.c:    rc = tsocket_address_inet_from_strings(mem_ctx,
source3/rpc_server/netlogon/srv_netlog_nt.c-                                           "ip",
source3/rpc_server/netlogon/srv_netlog_nt.c-                                           "127.0.0.1",
--
source3/rpc_server/rpc_ncacn_np.c:              rc = tsocket_address_inet_from_strings(mem_ctx,
source3/rpc_server/rpc_ncacn_np.c-                                                     "ip",
source3/rpc_server/rpc_ncacn_np.c-                                                     "127.0.0.1",
--
source3/rpc_server/spoolss/srv_spoolss_util.c:  rc = tsocket_address_inet_from_strings(mem_ctx,
source3/rpc_server/spoolss/srv_spoolss_util.c-                                         "ip",
source3/rpc_server/spoolss/srv_spoolss_util.c-                                         "127.0.0.1",
--
source3/winbindd/winbindd_pam.c:        rc = tsocket_address_inet_from_strings(frame,
source3/winbindd/winbindd_pam.c-                                               "ip",
source3/winbindd/winbindd_pam.c-                                               "127.0.0.1",
--
Comment 1 Björn Jacke 2021-02-26 14:39:06 UTC
we should ask getnameinfo for the IP address of localhost, a reasonalby well configured systems will either return 127.0.0.1 or ::1 and we should connect to whatever we get back there, right?