[Samba] Samba 4.0.13 on FreeBSD 9

Daniel O'Connor darius at dons.net.au
Wed Feb 12 17:33:35 MST 2014


Hi,
I installed Samba 4.0.13 from ports and ran..
sudo mv /usr/local/etc/samba /usr/local/etc/samba.3
sudo mv /usr/local/etc/smb.conf /usr/local/etc/smb.conf.3
sudo vi /usr/local/etc/smb.conf.3
# Add realm entry
sudo mv /var/db/samba /var/db/samba.3
sudo samba-tool domain classicupgrade --dbdir=/usr/local/etc/samba.3 --use-ntvfs /usr/local/etc/smb.conf.3

When I try and start I get..

sudo samba -d 4 -i -M single
<snip>
dcesrv_interface_register: interface 'srvsvc' registered on endpoint 'ncacn_np:[\pipe\srvsvc]'
dcesrv_interface_register: interface 'srvsvc' registered on endpoint 'ncacn_ip_tcp:'
dcesrv_interface_register: interface 'srvsvc' registered on endpoint 'ncalrpc:'
added interface em0 ip=2001:44b8:191:2e00:21b:21ff:fe94:ab13 bcast= netmask=ffff:ffff:ffff:ffff::
added interface em0 ip=10.0.2.1 bcast=10.0.2.255 netmask=255.255.255.0
added interface em0 ip=10.0.2.3 bcast=10.0.2.3 netmask=255.255.255.255
added interface em0 ip=10.0.2.4 bcast=10.0.2.4 netmask=255.255.255.255
added interface em0 ip=10.0.2.7 bcast=10.0.2.7 netmask=255.255.255.255
not adding non-broadcast interface ng0
added interface em0 ip=2001:44b8:191:2e00:21b:21ff:fe94:ab13 bcast= netmask=ffff:ffff:ffff:ffff::
added interface em0 ip=10.0.2.1 bcast=10.0.2.255 netmask=255.255.255.0
added interface em0 ip=10.0.2.3 bcast=10.0.2.3 netmask=255.255.255.255
added interface em0 ip=10.0.2.4 bcast=10.0.2.4 netmask=255.255.255.255
added interface em0 ip=10.0.2.7 bcast=10.0.2.7 netmask=255.255.255.255
not adding non-broadcast interface ng0
added interface em0 ip=2001:44b8:191:2e00:21b:21ff:fe94:ab13 bcast= netmask=ffff:ffff:ffff:ffff::
added interface em0 ip=10.0.2.1 bcast=10.0.2.255 netmask=255.255.255.0
added interface em0 ip=10.0.2.3 bcast=10.0.2.3 netmask=255.255.255.255
added interface em0 ip=10.0.2.4 bcast=10.0.2.4 netmask=255.255.255.255
added interface em0 ip=10.0.2.7 bcast=10.0.2.7 netmask=255.255.255.255
not adding non-broadcast interface ng0
Failed to bind to 10.0.2.3:137 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
task_server_terminate: [nbtd failed to setup interfaces]
samba_terminate: nbtd failed to setup interfaces

However nothing is listening on that port as shown my sockstat.

If i tell it to bind to 10.0.2.1 it works.

This might be because the server is called midget which resolves to 10.0.2.7 but that is only an alias on the interface.

Am I doing something wrong, or could the code be a little smarter?

Thanks.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.samba.org/pipermail/samba/attachments/20140213/e9d31954/attachment.pgp>


More information about the samba mailing list