cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS in Alfresco 3.0

jlabuelo
Champ on-the-rise
Champ on-the-rise
Good afternoon all

We just installed Alfresco 3.0 Labs to check it out and see if we migrate from alfresco 2.3. We have installed it and it works fine for the moment, however there is something we dont get to work. "CIFS".

Following the instructions in the book "Alfresco - Entreprise Content Management Implementacion" we have uncomented the file-servers.xml file
      <desktopActions>
            <global>
                    <path>alfresco/desktop/Alfresco.exe</path>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </global>
            <action>
               <class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>
               <name>Echo</name>
                 <filename>__AlfrescoEcho.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>
               <name>URL</name>
                 <filename>__AlfrescoURL.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>
               <name>CmdLine</name>
                 <filename>__AlfrescoCmd.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>
               <name>CheckInOut</name>
                 <filename>__AlfrescoCheckInOut.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScript</name>
               <filename>__AlfrescoScript.exe</filename>
               <script>alfresco/desktop/dumpRequest.js</script>
               <attributes>anyFiles, multiplePaths , allowNoParams</attributes>
               <preprocess>confirm, copyToTarget</preprocess>
            </action>
            <action>
               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScriptURL</name>
               <filename>__AlfrescoDetails.exe</filename>
               <script>alfresco/desktop/showDetails.js</script>
               <attributes>anyFiles</attributes>
               <preprocess>copyToTarget</preprocess>
            </action>

         </desktopActions>
but  when we try to connect and map a network drive "\\MachineName_a\alfresco" we get the error message "Impossible to connect to network drive"

Is there anything that we are doing wrong? shall we introduce "localhost_a" or "127.0.0.1" instead of the MachineName? Any specific change for Alfresco 3?

We have tried also the "localhost_a" or "127.0.0.1" and does not work either.

Thanks a lot in advance for the help
13 REPLIES 13

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi all again

First of all thanks for the help when we tried to configure Alfresco CIFS over a Windows Server. Now we are trying to move our Alfresco Server to an Ubuntu machine and we are finding some problems when we try to configure CIFS in this server and access the Alfresco repository from Windows clients.

We have followed the documentation in the wiki and also the Installation and Configuration manual for 3.0 but still get some problems.

Let me explain you what we have done:

We have installed Alfresco 3.0 over an Ubuntu Linux Server. Application works fine but now we would like to get CIFS to work so users can connect to the repository from Windows Network Mapped Folders


To Configure CIFS we have followed these steps

a) Open with FireStarted ports 137-445 (UDP and TCP) and 1137-1445 (TCP and UDP).

b) We have configured the file-servers-custom.xml in shared/classes/alfresco/extension
<alfresco-config area="file-servers"> 
<config evaluator="string-compare" condition="CIFS Server" replace="true">
     <serverEnable enabled="true"/>
      <host name="${localname}A" domain="OWCVMWARES"/>
     <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.0</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"/>

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


<!–

            <accessControl default="Write">

               <user name="admin" access="Write"/>

               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>

            </accessControl>

–>

         </filesystem>

       

       <!– AVM virtualization view of all stores/versions for WCM –>

         <avmfilesystem name="AVM">

            <virtualView/>

         </avmfilesystem>

       

      </filesystems>

   </config>


</alfresco-config>


c) Uncommented the Desktop Actions in file-servers.xml in alfresco/WEB-INF/classes/alfresco as we dont see them in the file-server-custom.xml
<alfresco-config area="file-servers">



   <config evaluator="string-compare" condition="CIFS Server">

     <serverEnable enabled="true"/>

      <host name="${cifs.localname}A" domain="${cifs.domain}"/>
  

      <comment>Alfresco CIFS Server</comment>



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

      <broadcast>${cifs.broadcast}</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="445" platforms="linux,solaris,macosx"/>

      <netBIOSSMB sessionPort="139" namePort="137" datagramPort="138" platforms="linux,solaris,macosx"/>

    

      

      <hostAnnounce interval="5"/>



      <!– Use Win32 NetBIOS interface on Windows –>

      <Win32NetBIOS/>

      <Win32Announce interval="5"/>



      <!– CIFS authentication –>

      <authenticator type="enterprise">

      </authenticator>

     

<!–

      <WINS>

         <primary>1.2.3.4</primary>

         <secondary>5.6.7.8</secondary>

      </WINS>

–>

      <sessionDebug flags="Negotiate,Socket"/>

   </config>



   <config evaluator="string-compare" condition="FTP Server">

     <serverEnable enabled="true"/>

    

     <!– Run on a non-privileged port –>

    

     <port>1121</port>

    



      <!– FTP authentication –>

      <authenticator type="alfresco"/>

          

<!–      <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/>



         <!– Desktop actions –>

         <!– Uses a client-side application to trigger a server-side action                         –>

         <!–   Echo - displays a message echoed from the server                                     –>

         <!–   URL  - launches a URL via the Windows shell                                          –>

         <!–   CmdLine - launches the Notepad application                                           –>

         <!–   CheckInOut - checks files in/out, drag and drop files onto the application           –>

         <!–   JavaScript - run a server-side script                                                –>

         <!–   JavaScriptURL - server-side script that generates a URL to the folder using a ticket –>

         <!–                   to avoid having to logon                                             –>





         <desktopActions>

            <global>

                    <path>alfresco/desktop/Alfresco.exe</path>

               <webpath>http://${localname}:8080/alfresco/</webpath>

            </global>

            <action>

               <class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>

               <name>Echo</name>

                 <filename>__AlfrescoEcho.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>

               <name>URL</name>

                 <filename>__AlfrescoURL.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>

               <name>CmdLine</name>

                 <filename>__AlfrescoCmd.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>

               <name>CheckInOut</name>

                 <filename>__AlfrescoCheckInOut.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>

               <name>JavaScript</name>

               <filename>__AlfrescoScript.exe</filename>

               <script>alfresco/desktop/dumpRequest.js</script>

               <attributes>anyFiles, multiplePaths , allowNoParams</attributes>

               <preprocess>confirm, copyToTarget</preprocess>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>

               <name>JavaScriptURL</name>

               <filename>__AlfrescoDetails.exe</filename>

               <script>alfresco/desktop/showDetails.js</script>

               <attributes>anyFiles</attributes>

               <preprocess>copyToTarget</preprocess>

            </action>



         </desktopActions>

         

                   

<!–

            <accessControl default="Write">

               <user name="admin" access="Write"/>

               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>

            </accessControl>

–>

         </filesystem>

        

         <!– AVM virtualization view of all stores/versions for WCM –>

         <!– virtual view can be any of the following: normal, site, staging, author, preview –>

         <avmfilesystem name="AVM">

            <virtualView stores="site,staging,author" />

         </avmfilesystem>

        

      </filesystems>

   </config>



   <config evaluator="string-compare" condition="Filesystem Security">

      <!– Domain mappings used for passthri authentication routing –>

      <!–

      <DomainMappings>

         <Domain name="ALFRESCO" subnet="192.168.1.0" mask="192.168.1.255"/>

      </DomainMappings>

      –>

     

      <!– Custom share mapper when multi-tenancy is enabled –>

      <!–

     <shareMapper type="multi-tenant">

       <debug/>

     </shareMapper>

      –>

     

<!–

      <globalAccessControl default="None">

         <user name="admin" access="Write"/>

         <address ip="90.1.0.90" access="Write"/>

      </globalAccessControl>

–>

   </config>





</alfresco-config>

we checked that our machine name is in /etc/host file

We have rebooted the Ubuntu server, and launched Alfresco, however when we try to map a network folder from a Windows XP customer we are not able to get access to alfresco neither with "\\192.168.2.12\alfresco" nor "\\Etcheverria2A\alfresco" where Etcheverria2 is the name of the Ubuntu Server.

Could you please let us know what we are doing wrong?

Thanks a lot in advance!!

clancydamon
Champ in-the-making
Champ in-the-making
I have an identical problem to jlabuelo. We are using Alfresco 3.2r, also on a VMware Ubuntu host (Sun VirtualBox, Ubuntu 9.4). I've followed all of the steps mentioned in the install guide and the wiki, and so far nothing is working. We are not running firewalls on our Windows machines (both WinXP and Win7). The hell of it is that windows seems able to see the host machine. Using the IP address (our host is internal on our network, so the subnet is the same as the windows machines trying to access it) while trying to map the drive, something is found and we are prompted for confirmation. Typing in our Alfresco username and password does not work. In fact, the next prompt lets us know that it is trying to find the username and password on the local computer, ie Name = WindowsXP_Comp\alfresco_user. We've tried changing the domain to the IP address, the Alfresco DB name, the Ubuntu host name (which was added to our hosts file), and so forth. Nothing allows access through CIFS. It's been a couple of months since the last response in this thread. Anyone have any ideas? We're stumped.

mrogers
Star Contributor
Star Contributor
If you are using 3.2r then following instructions for 3.0 will not work.

loftux
Star Contributor
Star Contributor
If you are using 3.2r then following instructions for 3.0 will not work.
And the best choice to look at would be http://wiki.alfresco.com/wiki/File_Server_Subsystem