cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect through CIFS to Alfresco running on Ubuntu

meetkenepps
Champ in-the-making
Champ in-the-making
I am running Alfresco 3.0 labs on Ubuntu (8.04). The installation looks fine – I am able to do all the things through web-client without problems.

I am also able to connect using Webdav, but when I try to connect to alfresco from a Windows machine using CIFS, I am unable to connect.

I am using \\192.168.1.6\Alfresco (I have tried Alfresco with lowercase as well) & when prompted for the username/password, I use super secret admin/admin.

When I do that, it keeps popping up the dialog for user-name/password.

I have googled enough for it and also gone through the wiki pages, without any help. Alfreso forums does not allow me to search for the keyword "CIFS" – it thinks it is too common and simply ignores it.

Any clues?

-Ken
9 REPLIES 9

peterowc
Champ in-the-making
Champ in-the-making
Same problem with Alfresco 2.9B on Windows2003/Jboss4.2.2GA/Oracle10G.

I have reviewed the configuartion dozens of times but the login window always appears.
No special CIF errors received in log more than:


2008-08-21 18:54:33,203 INFO  [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 1m:35s:172ms
2008-08-21 18:54:39,859 INFO  [STDOUT] 18:54:39,859  DEBUG [smb.protocol.mailslot] HostAnnouncer: Announced host WIN2003ALFRESCO

I have tried with several modifications in my file-servers-custom.xml file related with broadcasting, domain and even with Filesystemsecurity values(enterprise, alfresco…)


<config evaluator="string-compare" condition="Filesystem Security" replace="true">
      <authenticator type="alfresco">
</authenticator>

Noooo way… :x

peterowc
Champ in-the-making
Champ in-the-making
I have finally solved it!  Smiley Very Happy

This is my CIFS configuration in the "file-server-custom.xml" file placed in C:\jboss-4.2.2.GA\server\default\conf\alfresco\extension folder
My testing computer is named as WIN2KALF with ip 192.168.1.155


   <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"/>
   </config>



Uncomment "desktopactions" section in the same file as well.

I have added my computer name in drivers/etc/host file and lmhost as well.

I also detected a CIFS warning caused by a too much large computer name (more than 16 characters). See attached url as reference http://support.microsoft.com/kb/163409

I have renamed my computer name with a shorter name and then it works.

Hope you can solve your problem.

Bye.

vinay
Champ in-the-making
Champ in-the-making
Hi All,
I am trying to enable the CIFS in alfresco so that i can share the repository but unable to do it.
My project is at C:\Alfresco_Demo\alfresco-enterprise-tomcat-2.2.0 location, every thing is working fine except CIFS
What i did to enable the CIFS are as follows -
1) Copy the Win32NetBIOS dll file in Window\System32 and restart the server
2) Opened the Window Explorer and went to Tool -> Map Network Drive and i have chosen unused drive name (ZSmiley Happy and putted
"\\My_Machine_Name\Alfreso\Users\Users Home Space" in the Folder text box and when clicked on the finish button i got login
prompt for my machine when i used the User name and password it didn't connect always failed to connect with the provided
URL (\\My_Machine_Name\Alfreso\Users\Users Home Space).

Some where in this forum i have read about CISF there was written that need to edit the file-server-custom.xml file but i didn't understand
what i should to add in this file there was written configuration for LINUX machine + UBANTU. There was written that need to add the
<Host Name=[…] Domain=[…]> but i didn't understand where i should to add this tag in the file-server-custom.xml file so please
if there is any solution please help me out.. Thanks in advance… thanks a lot….

Note :- I am using Window XP operating system and tomcat server for alfresco
Please help me out

Thnaks & Regards
Vinay Vishal

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi there

Lets see if you got this working and if you can help us configuring CIFS in an Ubuntu Server.

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

We have tried to follow the steps described in the manual and in the post… but dont know what we do wrong we dont get it to work.

Seems that you got, so we ask you for your help to see if you are able to identify what we are doing wrong.

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 the way you explained in this post should be done

<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>

d) when you mean
have added my computer name in drivers/etc/host file and lmhost as well.
we are not able to find this path so 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!!

elibra
Champ in-the-making
Champ in-the-making
I'm facing the same issue.
before this forum, have tried steps suggested here: http://www.davidbaker.cc/?q=node/3
but not succeeded. May be it would help you to see where is the trick?
May be it is Samba-related issue? (as I was told, linux server becomes visible in win network after configuring Samba)

Meanwhile I'll keep looking for making the alfresco-server accessible from windows. If you'll find the way faster - please let me know
thanks!

nicolasraoul
Star Contributor
Star Contributor
Hi jlabuelo,

Does it work when you run Alfresco as root? It is dirtier but it would indicate whether it is a network port problem or not.

Hope this helps,
Nicolas Raoul
http://nrw.free.fr

elibra
Champ in-the-making
Champ in-the-making
May be it is Samba-related issue? (as I was told, linux server becomes visible in win network after configuring Samba)

Obviously - NOT
-just a bit theory regarding Alfresco's  implementation of CIFS (taken from http://share.alfresco.com documentation):
Linux users have come to know SMB and CIFS through the Samba project which provides an open source implementation of the SMB and CIFS protocol. As a cross-platform (Windows, Unix/Linux, Mac OS X) J2EE application that can be deployed to virtually any servlet engine such as Apache Tomcat, Alfresco employs a pure Java-based implementation of CIFS. This means that Samba is not required on the server that’s running Alfresco. More importantly, Alfresco’s built-in CIFS support lowers the ECM adoption barrier by permitting users to use the Windows Explorer (or the Finder on Macs) to easily connect to the repository and immediately benefit from the aforementioned advantages of a content repository.

harishns
Champ in-the-making
Champ in-the-making
Hi,
I have installed alfresco 3.2 on my xp system, I am not able to open the content in "View in CIFS" option, my file server configuration is as follows.
filesystem.name=Alfresco

cifs.enabled=true
cifs.localname=${localname}
cifs.domain=localdomain
cifs.broadcast=255.255.255.255
cifs.bindto=0.0.0.0
cifs.ipv6=disabled
cifs.hostannounce=true

ftp.enabled=true
ftp.ipv6=disabled

nfs.enabled=false
Please help to get the CIFS folder working , it is becoming very important for our project.

Thanks

nicolasraoul
Star Contributor
Star Contributor
Hello harishns,

What error message do you get?
Do you use Kerberos or not?

If you first mount the share manually. After doing it, the "View in CIFS" link might work better (See bug https://issues.alfresco.com/jira/browse/ETHREEOH-778)

Hope this helps,
NicolasRaoul