cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 2.0 + CIFS in a standalone computer

melkor_kp
Champ in-the-making
Champ in-the-making
I am a newbe, I just managed to install alfresco under ubuntu

I was trying to configure CIFS in a Xubuntu 6.10.
Well, precisely is a windows xp running vmware.

When I started alfresco 2.0 with the CIFS support I get the following errors
in the /opt/Alfresco/alfresco.log.

ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgr
oup name, using default of WORKGROUP

ERROR [org.alfresco.smb.protocol] (This may be due to firewall sett
ings or incorrect <broadcast> setting)

The computer is called workdesk it appears in the prompt user@workdesk
but there is no any dns configured, and I am not using any WINS server.

This is my file file-servers.xml
<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
          <serverEnable enabled="true"/>
      <host name="${localname}_A"/>
      <comment>Alfresco CIFS Server</comment>

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

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

           <!– Can be mapped to non-privileged ports, then use firewall rules t
o forward
                    requests from the standard ports –>
                  
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platfor
ms="linux,solaris,macosx"/>
           <hostAnnounce interval="5"/>

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

      <sessionDebug flags="Negotiate,Socket"/>
   </config>   <config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>
   </config>
  
   <config evaluator="string-compare" condition="NFS Server">
          <serverEnable enabled="false"/>
   </config>
       
   <config evaluator="string-compare" condition="Filesystems">
          <filesystems>
                 
                 <!– Alfresco repository access shared filesystem –>
         <filesystem name="Alfresco">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>

                        <!– Add a URL file to each folder that links back to th
e web client –>
                        <urlFile>
               <filename>__AlfrescoClient.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>
   <!– Mark locked files as offline –>
                    <offlineFiles/>

       </filesystem>

                 <!– AVM virtualization view of all stores/versions for WCM –>
         <avmfilesystem name="AVM">
            <virtualView/>
         </avmfilesystem>

      </filesystems>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="enterprise">
      </authenticator>
</config>


</alfresco-config>
                   
Does anybody know what is happening?
3 REPLIES 3

melkor_kp
Champ in-the-making
Champ in-the-making
I solved the problem doing the following actions.

First I decided to use the default ports because  I have not had a samba already
running. This is just a logic measure and does not solve the problem.

Then I changed the broadcast direction to the correct one.  With ifconfig it is possible to see the right value if you do not deployed the network.

And the most important thing is to modify the following line:


<host name="${localname}_A"/>

to

<host name="${localname}_A" domain="MYDOMAIN"/>

The problem now is that by the time being I obtain response when I try to access the resource but the password and the user are not responding.

Does anybody know the possible cause?

melkor_kp
Champ in-the-making
Champ in-the-making
I tried to connect with the unix smbclient an this is working for me

smbclient -U admin \\\\127.0.0.1\\alfresco admin 

But explorer is still not working and I don't know why.
I am using Internet Explorer 7.0.

melkor_kp
Champ in-the-making
Champ in-the-making
This is due to the virtual machine, explorer is working properly.
Whitout configuring a WINS server it is easy to associate to the
hostname an IP using the file hosts placed in /etc/hosts in unix and
in c:\windows\system32\drivers\etc\hosts.

With that everything is recognised.
To make CIFS work you should do the following steps as well.
In the following file
/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties
you should uncomment some lines.

# CIFS server debugging
log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.smb.protocol.auth=debug

And to summarize here is the  file-servers.xml

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

   <config evaluator="string-compare" condition="CIFS Server">
          <serverEnable enabled="true"/>
      <host name="${localname}_A" domain="MYDOMAIN"/>
      <comment>Alfresco CIFS Server</comment>

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

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

           <!– Can be mapped to non-privileged ports, then use firewall rules to forward
                    requests from the standard ports –>
<!–              
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
–>

      <hostAnnounce interval="5"/>

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

      <sessionDebug flags="Negotiate,Socket"/>
   </config>

   <config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>
<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>

   <config evaluator="string-compare" condition="NFS Server">
          <serverEnable enabled="false"/>
   </config>

   <config evaluator="string-compare" condition="Filesystems">
          <filesystems>

                 <!– Alfresco repository access shared filesystem –>
         <filesystem name="Alfresco">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>

                        <!– Add a URL file to each folder that links back to the web client –>
                        <urlFile>
               <filename>__AlfrescoClient.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>

                        <!– Mark locked files as offline –>
                    <offlineFiles/>

        </filesystem>

                 <!– AVM virtualization view of all stores/versions for WCM –>
         <avmfilesystem name="AVM">
            <virtualView/>
         </avmfilesystem>

      </filesystems>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="enterprise">
      </authenticator>

  </config>

</alfresco-config>

The problem now is that sometimes is not working because there is more
netbios traffic and sometimes is to busy to respond, so next would be
to create a iptables rules to reduce the amount of data that the alfresco
cifs server is managing.