Re: [Samba] no network interfaces found on OpenIndiana (Illumos)

2013-03-07 Thread Tris Mabbs
Hiya Joeri,

I had exactly the same problem with OpenSolaris - would not find the
interfaces.

However I found that if I explicitly defined the interfaces in the smb.conf
file:

interfaces = if.ip.add.ress/netmask_bits
if.ip.other.address/netmask_bits

Samba was quite happy to pick that up.

I had the same problem with the ISC DHCP server, but there I had actually to
modify code to get it to work.  It does seem that there's something odd in
the way some Solaris versions provide access to the interface lists, but
I've never had time to get fully to the bottom of it (and I'm afraid I can't
remember exactly what I had to change in the ISC DHCP server to get it to
work).
Something perhaps to be picked up at some point for investigation by the
developers, but it's probably much easier for you right now just to try
adding an interfaces line to your smb.conf and see whether that fixes it
for you - hopefully it will.

Hope that helps!

Cheers,

Tris.

Ps.  So the interfaces line you'd want (IPv4) would be something like
interfaces 192.168.250.8/24 127.0.0.1/8 or interfaces
192.168.250.8/255.255.255.0 127.0.0.1/255.0.0.0.

-Original Message-
From: Joeri Vanthienen [mailto:m...@joerivanthienen.be] 
Sent: 06 March 2013 10:42
To: samba@lists.samba.org
Subject: [Samba] no network interfaces found on OpenIndiana (Illumos)

Hi,

I've downloaded the samba 3.6.12 OpenCSW package.
I joined openindiana to the the active directory, winbind seems to work
fine, I see all the users with wbinfo -u.
However, my samba server is not starting. It seems that there is no network
card found.

2013/03/06 10:40:39.068405,  0] lib/interface.c:543(load_interfaces)
  WARNING: no network interfaces found
[2013/03/06 10:40:39.072795,  0] smbd/server.c:1082(main)
  standard input is not a socket, assuming -D option ...
[2013/03/06 10:40:39.205210,  0] smbd/server.c:746(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.

Is there some problem that the get_interfaces(talloc_tos(), ifaces); call
returns  no interfaces on solaris/openindiana ?
Any idea?

I sure have interfaces:
root@openindiana:/# ifconfig -a
lo0: flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu
8232 index 1
inet 127.0.0.1 netmask ff00
e1000g0: flags=1004843UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4 mtu
1500 index 3
inet 192.168.250.8 netmask ff00 broadcast 192.168.250.255
ether 8:0:27:bd:35:de
lo0: flags=2002000849UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL mtu
8252 index 1
inet6 ::1/128
e1000g0: flags=20002004841UP,RUNNING,MULTICAST,DHCP,IPv6 mtu 1500 index 3
inet6 fe80::a00:27ff:febd:35de/10
ether 8:0:27:bd:35:de


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] no network interfaces found on OpenIndiana (Illumos)

2013-03-07 Thread Joeri Vanthienen
Hi Tris,

Thank you for your reply! Really helpful.
I'm suspecting that my problem had something to do with virtualbox.
I deployed it today on a normal physical machine and it worked
immediatly, without the interfaces line.
I'll try again the interfaces line on my virtual machine.

Thanks.
joeri



On Thu, Mar 7, 2013 at 11:15 AM, Tris Mabbs
tm-samba201...@firstgrade.co.uk wrote:
 Hiya Joeri,

 I had exactly the same problem with OpenSolaris - would not find the
 interfaces.

 However I found that if I explicitly defined the interfaces in the smb.conf
 file:

 interfaces = if.ip.add.ress/netmask_bits
 if.ip.other.address/netmask_bits

 Samba was quite happy to pick that up.

 I had the same problem with the ISC DHCP server, but there I had actually to
 modify code to get it to work.  It does seem that there's something odd in
 the way some Solaris versions provide access to the interface lists, but
 I've never had time to get fully to the bottom of it (and I'm afraid I can't
 remember exactly what I had to change in the ISC DHCP server to get it to
 work).
 Something perhaps to be picked up at some point for investigation by the
 developers, but it's probably much easier for you right now just to try
 adding an interfaces line to your smb.conf and see whether that fixes it
 for you - hopefully it will.

 Hope that helps!

 Cheers,

 Tris.

 Ps.  So the interfaces line you'd want (IPv4) would be something like
 interfaces 192.168.250.8/24 127.0.0.1/8 or interfaces
 192.168.250.8/255.255.255.0 127.0.0.1/255.0.0.0.

 -Original Message-
 From: Joeri Vanthienen [mailto:m...@joerivanthienen.be]
 Sent: 06 March 2013 10:42
 To: samba@lists.samba.org
 Subject: [Samba] no network interfaces found on OpenIndiana (Illumos)

 Hi,

 I've downloaded the samba 3.6.12 OpenCSW package.
 I joined openindiana to the the active directory, winbind seems to work
 fine, I see all the users with wbinfo -u.
 However, my samba server is not starting. It seems that there is no network
 card found.

 2013/03/06 10:40:39.068405,  0] lib/interface.c:543(load_interfaces)
   WARNING: no network interfaces found
 [2013/03/06 10:40:39.072795,  0] smbd/server.c:1082(main)
   standard input is not a socket, assuming -D option ...
 [2013/03/06 10:40:39.205210,  0] smbd/server.c:746(open_sockets_smbd)
   open_sockets_smbd: No sockets available to bind to.

 Is there some problem that the get_interfaces(talloc_tos(), ifaces); call
 returns  no interfaces on solaris/openindiana ?
 Any idea?

 I sure have interfaces:
 root@openindiana:/# ifconfig -a
 lo0: flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu
 8232 index 1
 inet 127.0.0.1 netmask ff00
 e1000g0: flags=1004843UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4 mtu
 1500 index 3
 inet 192.168.250.8 netmask ff00 broadcast 192.168.250.255
 ether 8:0:27:bd:35:de
 lo0: flags=2002000849UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL mtu
 8252 index 1
 inet6 ::1/128
 e1000g0: flags=20002004841UP,RUNNING,MULTICAST,DHCP,IPv6 mtu 1500 index 3
 inet6 fe80::a00:27ff:febd:35de/10
 ether 8:0:27:bd:35:de


 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] no network interfaces found on OpenIndiana (Illumos)

2013-03-07 Thread Tris Mabbs
Hiya Joeri,

 Thank you for your reply! Really helpful.

You're most welcome - hope it helps!

 I'm suspecting that my problem had something to do with virtualbox.
 I deployed it today on a normal physical machine and it worked immediatly,
without the interfaces line.

I think it might possibly be something to do with the actual interface
names.
My OpenSolaris box, and your VirtualBox image, are both using e1000g0 (in
my case also e1000g1) interfaces, the generic Intel 825xx NIC driver.  In
my case, that's the correct driver for the actual physical card in use; in
your case, it is (if I remember rightly) the standard virtualised emulated
hardware supplied in VirtualBox.
The point is, if you look on the physical server on which you didn't have
any problems, I'll bet it's not using an e1000g0 interface ...

I wonder whether it's purely down to the length of the interface name?
Typical Sun interface names are much shorter, E.g. qfe0, elx0, etc.

Whatever, hopefully adding an interfaces line on your VirtualBox will
resolve the issue (fingers crossed for you :-)

Good luck!

Cheers,

Tris.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] no network interfaces found on OpenIndiana (Illumos)

2013-03-06 Thread Joeri Vanthienen
Hi,

I've downloaded the samba 3.6.12 OpenCSW package.
I joined openindiana to the the active directory, winbind seems to
work fine, I see all the users with wbinfo -u.
However, my samba server is not starting. It seems that there is no
network card found.

2013/03/06 10:40:39.068405,  0] lib/interface.c:543(load_interfaces)
  WARNING: no network interfaces found
[2013/03/06 10:40:39.072795,  0] smbd/server.c:1082(main)
  standard input is not a socket, assuming -D option
...
[2013/03/06 10:40:39.205210,  0] smbd/server.c:746(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.

Is there some problem that the get_interfaces(talloc_tos(), ifaces);
call returns  no interfaces on solaris/openindiana ?
Any idea?

I sure have interfaces:
root@openindiana:/# ifconfig -a
lo0: flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL mtu
8232 index 1
inet 127.0.0.1 netmask ff00
e1000g0: flags=1004843UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4 mtu
1500 index 3
inet 192.168.250.8 netmask ff00 broadcast 192.168.250.255
ether 8:0:27:bd:35:de
lo0: flags=2002000849UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL mtu
8252 index 1
inet6 ::1/128
e1000g0: flags=20002004841UP,RUNNING,MULTICAST,DHCP,IPv6 mtu 1500 index 3
inet6 fe80::a00:27ff:febd:35de/10
ether 8:0:27:bd:35:de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] no network interfaces found on OpenIndiana (Illumos)

2013-03-06 Thread Jeremy Allison
On Wed, Mar 06, 2013 at 11:42:02AM +0100, Joeri Vanthienen wrote:
 Hi,
 
 I've downloaded the samba 3.6.12 OpenCSW package.
 I joined openindiana to the the active directory, winbind seems to
 work fine, I see all the users with wbinfo -u.
 However, my samba server is not starting. It seems that there is no
 network card found.
 
 2013/03/06 10:40:39.068405,  0] lib/interface.c:543(load_interfaces)
   WARNING: no network interfaces found
 [2013/03/06 10:40:39.072795,  0] smbd/server.c:1082(main)
   standard input is not a socket, assuming -D option
 ...
 [2013/03/06 10:40:39.205210,  0] smbd/server.c:746(open_sockets_smbd)
   open_sockets_smbd: No sockets available to bind to.
 
 Is there some problem that the get_interfaces(talloc_tos(), ifaces);
 call returns  no interfaces on solaris/openindiana ?
 Any idea?

Use gdb to step through the code and see why it's failing
to find interfaces, or add debug statements to the places
we return from querying an interface. Sorry, no other easy
answer.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] no network interfaces found on OpenIndiana (Illumos)

2013-03-06 Thread Gaiseric Vandal
Solaris 11 added a CIFS server -  I don't know if it is openindiana.   
check the svcs -a command to make sure that there isn't a preexisting 
CIFS or samba server already running.


FYI The latest Solaris 10 + updates has samba 3.5.x or 3.6.x . I had 
issues with older samba packages from sunfreeware.com and opencsw  with 
64-bit support, LDAP compatibility and ZFS support.



On 03/06/13 12:56, Jeremy Allison wrote:

On Wed, Mar 06, 2013 at 11:42:02AM +0100, Joeri Vanthienen wrote:

Hi,

I've downloaded the samba 3.6.12 OpenCSW package.
I joined openindiana to the the active directory, winbind seems to
work fine, I see all the users with wbinfo -u.
However, my samba server is not starting. It seems that there is no
network card found.

2013/03/06 10:40:39.068405,  0] lib/interface.c:543(load_interfaces)
   WARNING: no network interfaces found
[2013/03/06 10:40:39.072795,  0] smbd/server.c:1082(main)
   standard input is not a socket, assuming -D option
...
[2013/03/06 10:40:39.205210,  0] smbd/server.c:746(open_sockets_smbd)
   open_sockets_smbd: No sockets available to bind to.

Is there some problem that the get_interfaces(talloc_tos(), ifaces);
call returns  no interfaces on solaris/openindiana ?
Any idea?

Use gdb to step through the code and see why it's failing
to find interfaces, or add debug statements to the places
we return from querying an interface. Sorry, no other easy
answer.

Jeremy.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba