AnsweredAssumed Answered

samba server and Alfresco CIFS server on same machine

Question asked by josefu on Jun 26, 2007
Hi

I have a Ubuntu Dapper with a samba server sharing some directories and a Alfresco Tomcat bundle.
I have read Changing Bind Addresses and Ports for Samba and FTP

All work fine, but the windows client machines doesn't resolve the netbios name of the samba server and the Alfresco cifs server.
If i create the LMHOSTS file in the windows machines with the two servers, all works perfect, but i have several machines and i want know if is possible resolve this without copy the LMHOSTS file in clients.

This is my alfresco.log (relevant smb protocol logs)
http://pastebin.com/936382

This is my file-servers.xml

<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
      <host name="SERVER_A" domain="MSHOME"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>192.168.5.255</broadcast>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB bindto="192.168.5.35" platforms="linux,solaris,macosx"/>
    <!–  <netBIOSSMB platforms="linux,solaris,macosx"/> –>
      <netBIOSSMB bindto="192.168.5.35" platforms="linux,solaris,macosx"/>
      <hostAnnounce interval="5"/>

-       <bindto>192.168.5.35</bindto>
      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

   …..

and this is the part o smb.conf for binding the samba server to the other ip:


[global]
   workgroup = MSHOME

   netbios name = SERVER

   interfaces = eth0

   bind interfaces only = true

   socket address = 192.168.5.100

   …..


(Sorry for my bad english)

Outcomes