Bug 3960 - Ignores bind interfaces only when running via inetd
Ignores bind interfaces only when running via inetd
Product: Samba 3.0
Classification: Unclassified
Component: File Services
x86 FreeBSD
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2006-07-25 02:15 UTC by Max Katsev
Modified: 2007-05-14 23:08 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Max Katsev 2006-07-25 02:15:02 UTC
When i ran samba using inetd it listens to all interfaces, even if interfaces and bind intefaces only lines are present in smb.conf.

Steps to reproduce:

Computer has 2 interfaces:
rl0 ( and rl1 (

I run samba using inetd:
netbios-ssn stream tcp  nowait          root    /usr/local/sbin/smbd    smbd
netbios-ns dgram udp    wait            root    /usr/local/sbin/nmbd    nmbd
swat    stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat

        interfaces = rl0
        bind interfaces only = Yes

However it uses ip as well:
[root@server ~]# smbclient -L -U%
Domain=[_OP] OS=[Unix] Server=[Samba 3.0.23]

        Sharename       Type      Comment
        ---------       ----      -------
        incoming        Disk      incoming
        IPC$            IPC       IPC Service (Samba Server)
Domain=[_OP] OS=[Unix] Server=[Samba 3.0.23]

        Server               Comment
        ---------            -------
        SERVER               Samba Server

        Workgroup            Master
        ---------            -------
        _OP                  SERVER

If i stop inetd and run samba manually it works as expected:
[root@server ~]# /etc/rc.d/inetd stop
Stopping inetd.
[root@server ~]# /usr/local/etc/rc.d/samba forcestart
Starting SAMBA: removing stale tdbs :
Starting nmbd.
Starting smbd.
Starting winbindd.
[root@server ~]# smbclient -L -U%
Error connecting to (Connection refused)
Connection to failed

Also this lines appear in log.nmbd when using inetd:
[2006/07/25 09:14:46, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(486)
  Doing a node status request to the domain master browser at IP failed.
  Cannot get workgroup name.
Comment 1 James Peach 2007-05-14 23:08:38 UTC
In inetd mode, it is inetd that manages which interfaces are listened on. You need to find some way of doing the equivalent of "bind interfaces only" in your indetd configuration.