AnsweredAssumed Answered

CIFS Server Network Bind Error

Question asked by unknown-user on Oct 24, 2006
Latest reply on Mar 21, 2007 by unknown-user
Ver: Alfresco 1.3
Host: RedHat Linux ES4 U3
Tomcat: 5.5

I'm attempting to get Alfresco to bind higher SMB/CIFS ports as I'm running tomcat as an unprivilieged user. (I'm using iptable to route to the non-standard ports.) From the documentation and other forums threads I believe I've configured Alfresco properly but am still getting a bind error.

<alfrescoRoot>/WEB-INF/classes/alfresco/file-servers.xml key settings: (I've redacted the IP numbers)
      <host name="${localname}_A" domain="AD"/>
       <bindto>10.*.*.*</bindto>
      <broadcast>10.*.*.255</broadcast>
      <tcpipSMB port="2445"/>
      <netBIOSSMB bindto="10.*.*.*" sessionPort="2139" namePort="2137" datagramPort="2138"/>
      <hostAnnounce interval="5"/>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>
      <WINS>
         <primary>10.*.*.*</primary>
         <secondary>10.*.*.*</secondary>
      </WINS>

Regardless of inserting platforms="linux,solaris,macosx" in the tcpipSMB and netBIOSSMB tags generates the same binding error.

In catalina.out|alfresco.log :

16:47:40,428 ERROR [smb.protocol.netbios] NetBIOSNameServer setup error:
java.net.BindException: Permission denied
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
        at java.net.DatagramSocket.bind(DatagramSocket.java:368)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
        at org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1078)
        at org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1504)
        at java.lang.Thread.run(Thread.java:595)
16:47:40,443 INFO  [alfresco.smb.protocol] SMB Server [b]${localname}_A [/b]starting
16:47:40,444 INFO  [alfresco.smb.protocol] GUID f5473e24-070e-3c09-a361-e6017abdb4f2
16:47:40,444 INFO  [alfresco.smb.protocol] Using authenticator org.alfresco.filesys.server.auth.ntlm.AlfrescoAuthenticator
16:47:40,444 INFO  [alfresco.smb.protocol] Server timezone America/Chicago, offset from UTC = 6hrs
16:47:40,444 INFO  [alfresco.smb.protocol] Shares:
16:47:40,446 INFO  [alfresco.smb.protocol]  [Alfresco,DISK,ACLs=2,[workspace://SpacesStore/07ed0819-62ec-11db-9994-03ee454b9d84]] [workspace://SpacesStore/07ed0819-62ec-11db-9994-03ee454b9d84]
16:47:40,447 INFO  [alfresco.smb.protocol] Add Share [IPC$,IPC$,,Admin,Hidden] : true
16:47:40,460 ERROR [alfresco.smb.protocol] Server error :
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:247)
        at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:159)
        at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:496)
        at java.lang.Thread.run(Thread.java:595)
16:47:40,461 INFO  [alfresco.smb.protocol] SMB Server shutting down …

All insights appreciated. (I should note that setting the FTP Server port to a non-privileged port was successfull; and that with the iptable prerouting I can connect to the Alfresco FTP Server instance without pause.)

-James

Outcomes