I have abandoned trying to get an existing AD-DC on a FreeBSD host using UFS to replicate successfully to a FreeBSD host on ZFS. I am now in the process of provisioning a new domain on the ZFS host. The domain is created on a FreeBSD thick jail using IOcage as the jail manager; probably should be called the warden but I digress. I have successfully provisioned a new domain but I see an issue that I would like to resolve before proceeding. In smb4.conf I have these lines: bind interfaces only = No interfaces = lo eth0 When I run 'smbclient -L localhost -U%' then I see this: WARNING: no network interfaces found Sharename Type Comment --------- ---- ------- sysvol Disk netlogon Disk IPC$ IPC IPC Service (Samba 4.11.8) SMB1 disabled -- no workgroup available Before I proceed further I would like to know why are there no network interfaces found? Is there some other configuration that I need to do to have samba find them? ifconfig em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER> ether 00:1c:c0:f2:1f:b8 inet 192.168.216.166 netmask 0xffffffff broadcast 192.168.216.166 media: Ethernet autoselect (1000baseT <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.166.1 netmask 0xffffffff groups: lo Thanks, The favour of a direct copy of any reply to the list would be appreciated. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On 29/05/2020 19:57, James B. Byrne via samba wrote:> I have abandoned trying to get an existing AD-DC on a FreeBSD host using UFS to > replicate successfully to a FreeBSD host on ZFS. I am now in the process of > provisioning a new domain on the ZFS host. > > The domain is created on a FreeBSD thick jail using IOcage as the jail manager; > probably should be called the warden but I digress. > > I have successfully provisioned a new domain but I see an issue that I would > like to resolve before proceeding. In smb4.conf I have these lines: > > bind interfaces only = No > interfaces = lo eth0 > > When I run 'smbclient -L localhost -U%' then I see this: > > WARNING: no network interfaces found > > Sharename Type Comment > --------- ---- ------- > sysvol Disk > netlogon Disk > IPC$ IPC IPC Service (Samba 4.11.8) > SMB1 disabled -- no workgroup available > > Before I proceed further I would like to know why are there no network > interfaces found? Is there some other configuration that I need to do to have > samba find them? >Known problem fixed in 4.12.0, either comment out the lines or upgrade. I do not think that a Samba DC will work correctly in a jail (but I am not an expert here). I did try (a few Samba versions ago) to run a Samba DC on Freebsd and failed, I tried with ZFS & UFS and the problem was the NFSv4ACL's, Samba just didn't like them. Things may have changed, but I suggest you discuss this with Timur (I think that is his name), he appears to be the expert on Samba and Freebsd. Rowland
On Fri, May 29, 2020 14:57, James B. Byrne wrote:> I have successfully provisioned a new domain but I see an issue that I would > like to resolve before proceeding. In smb4.conf I have these lines: > > bind interfaces only = No > interfaces = lo eth0 > > When I run 'smbclient -L localhost -U%' then I see this: > > WARNING: no network interfaces found > > Sharename Type Comment > --------- ---- ------- > sysvol Disk > netlogon Disk > IPC$ IPC IPC Service (Samba 4.11.8) > SMB1 disabled -- no workgroup available >I worked around this by modifying smb4.conf to contain: bind interfaces only = Yes interfaces = localhost lo smb4-1 eth0 and server services = -nbt The 'server services' entry is required because without it samba reports that port 137 is already bound and then terminates. However, the output still does not match what the wiki says to expect: smbclient -L localhost -U% Domain=[SAMDOM] OS=[Unix] Server=[Samba x.y.z] I do not see the domain, OS or version displayed. Thanks, The favour of a direct copy of any reply to the list would be appreciated. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On Fri, 2020-05-29 at 15:57 -0400, James B. Byrne via samba wrote:> smbclient -L localhost -U% > Domain=[SAMDOM] OS=[Unix] Server=[Samba x.y.z] > > I do not see the domain, OS or version displayed.SMB2 does not provide that in the new session setup. Andrew Bartlett -- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Developer, Catalyst IT https://catalyst.net.nz/services/samba
On 29/05/2020 20:57, James B. Byrne via samba wrote:> I worked around this by modifying smb4.conf to contain: > > bind interfaces only = Yes > interfaces = localhost lo smb4-1 eth0 > and > server services = -nbt > > The 'server services' entry is required because without it samba reports that > port 137 is already bound and then terminates. > > However, the output still does not match what the wiki says to expect:Where does it say that, I will fix it.> > smbclient -L localhost -U% > Domain=[SAMDOM] OS=[Unix] Server=[Samba x.y.z] > > I do not see the domain, OS or version displayed.It hasn't said that since 4.7.0, it should now look similar to this: pi at raspberrypi:~ $ smbclient -L localhost -N ??? Sharename?????? Type????? Comment ??? ---------?????? ----????? ------- ??? home??????????? Disk ??? testshare?????? Disk????? test share ??? users?????????? Disk ??? IPC$??????????? IPC?????? IPC Service (Samba Client raspberrypi) SMB1 disabled -- no workgroup available Rowland