cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS on Windows XP

nyronian
Champ in-the-making
Champ in-the-making
I can't seem to find the documentation on how to get CIFS working on Windows XP.  Can anybody direct me?

I can take the same war (and shared files), deploy them redhat linux and it works fine.  I go into windows explorer with \\{hostname}_a, it prompts me to log in and it works.

I currently have a development copy running on my Windows XP (SP3) machine and would like to access the local machine the same way.  \\{localhost}_a

I have searched through the wikis and on this forum (although it does not let me simply search CIFSand windows) and cannot find anything that appears to be useful to get it working.  Can someone please direct me?  Do I have to have the NetBios Protocol running on my local machine?  Is there a document somewhere that describes the Windows requirements to get any CIFS system working that may be separate from the Alfresco Documentation.

Environment:
Windows XP 2002 SP3
Tomcat 5.5
JDK 6.0

file-server.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>255.255.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"/><!–      <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"/><!–      <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.smb.server.repo.desk.EchoDesktopAction</class>               <name>Echo</name>                 <filename>__AlfrescoEcho.exe</filename>            </action>            <action>               <class>org.alfresco.filesys.smb.server.repo.desk.URLDesktopAction</class>               <name>URL</name>                 <filename>__AlfrescoURL.exe</filename>            </action>            <action>               <class>org.alfresco.filesys.smb.server.repo.desk.CmdLineDesktopAction</class>               <name>CmdLine</name>                 <filename>__AlfrescoCmd.exe</filename>            </action>            <action>               <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>               <name>CheckInOut</name>                 <filename>__AlfrescoCheckInOut.exe</filename>            </action>            <action>               <class>org.alfresco.filesys.smb.server.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.smb.server.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 –>         <avmfilesystem name="AVM">            <virtualView/>         </avmfilesystem>              </filesystems>   </config>   <config evaluator="string-compare" condition="Filesystem Security">      <authenticator type="enterprise">      </authenticator><!–      <globalAccessControl default="None">         <user name="admin" access="Write"/>         <address ip="90.1.0.90" access="Write"/>      </globalAccessControl>      <users>         <localuser name="user">            <password>user</password>            <comment>Normal user account</comment>         </localuser>            <localuser name="administrator">            <password>admin</password>            <administrator/>            <comment>Administrator account</comment>         </localuser>      </users>–>   </config></alfresco-config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

file-server-custom.xml
<alfresco-config area="file-servers">   <!– To override the default Alfresco filesystem use replace="true", to –>   <!– add additional filesystems remove the replace="true" attribute     –>      <config evaluator="string-compare" condition="Filesystems" replace="true">      <filesystems>         <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>__Alfresco.url</filename>               <webpath>http://${localname}/</webpath>            </urlFile>            <!– Mark locked files as offline –>            <offlineFiles/>            <!– Desktop actions –>            <desktopActions>               <global>                  <path>alfresco/desktop/Alfresco.exe</path>                  <webpath>http://${localname}/</webpath>               </global>               <action>                  <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>                  <name>CheckInOut</name>                  <filename>__CheckInOut.exe</filename>               </action>               <action>                  <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>                  <name>JavaScriptURL</name>                  <filename>__ShowDetails.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 –>         <avmfilesystem name="AVM">            <virtualView/>         </avmfilesystem>              </filesystems>   </config></alfresco-config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍


Thanks in advance.
14 REPLIES 14

joglekar
Champ in-the-making
Champ in-the-making
Hi

Check your catalina.out file to confirm CIFS is started.

If not started you may get error message
UserSmiley Frustratedystem ERROR [alfresco.smb.protocol] CIFS and FTP servers not started due to filesystem initialization error.

In such case CIFS server is not started.

Joglekar

nyronian
Champ in-the-making
Champ in-the-making
The startup is clean.  No Error messages related to smb at startup.

Any other ideas?  What is the required configuration on my machine to get this working?

Does CIFS not work for a stand-alone machine the alfresco server is located on?  Or is this a Windows XP thing?  The configuration I have worked fine on Linux (for client machines trying to map to it)  My guess is I have to have some driver installed.  I have tried the same installation on multiple XP machines and it does not work.

Does Alfresco have a wiki that explains the requirements for an XP installation.

tonytony
Champ in-the-making
Champ in-the-making
news versions of alfresco drop the "_" in the "_A" for the server name. So if your server name is pluto, try \\plotoa\alfresco to see shared directories.

nyronian
Champ in-the-making
Champ in-the-making
Yes, I have checked both to no avail.

Any thoughts?

zaizi
Champ in-the-making
Champ in-the-making
Have you gone through this thread http://forums.alfresco.com/en/viewtopic.php?f=8&t=938

nyronian
Champ in-the-making
Champ in-the-making
I had reviewed the post before and never got it working.  I missed a detail that is working now.

Thank you so much for your responses.  Not sure why it took so long for me to notice the mistake Smiley Sad

One of the questions on the above mentioned thread is to get it working when disconnected from the network.  I assume it is not possible?

sroy
Champ in-the-making
Champ in-the-making
Its more of a frustration working with CIFS / SAMBA / LDAP /Mapped Drives etc and Alfresco.There is no proper support provided to the FREE or so called "Community Version".Replies given to most of the quiestions by Alfresco Engineers are "get the latest from HEAD and build it yourself ..blah blah" .No wonder I am also here to look for the same answers and I know what FRUSTRATION you would go through and finally END UP WITH no solution just like me.Is this the approach Alfresco going to follow then its better not to use ALfresco which does not work at all. The first article I read about was about "mapped drive etc" and believe me after using it for a month or so THESE DONT WORK.The hope that it will work for past few weeks has gone down the drain and response from Alfresco ever so frustrating..welcome to more frustration !!!

rogier_oudshoor
Champ in-the-making
Champ in-the-making
Sadly, Alfresco != Free Beer.

ganeshkolhe
Champ in-the-making
Champ in-the-making
No more frustration buddy, After reading this post I was also thought in your way, but did not give up.
What I tried ……
1. Enable Debug setting for CIFS server
   log4j.logger.org.alfresco.smb.protocol=debug
   log4j.logger.org.alfresco.smb.protocol.auth=debug
   log4j.logger.org.alfresco.acegi=debug
And I got to know that the ${localname} is of 15 Character i.e. abc-569901e23e8 ,and Got message in Debug that "Computer name is more than 15 character so truncating computer name"

I asked our admin to change my computer name and we changed it to "alfresco109". and it worked for me  Smiley Very Happy

Here is code for my file-server-custom.xml
<alfresco-config area="file-servers">   <!– To override the default Alfresco filesystem use replace="true", to –>   <!– add additional filesystems remove the replace="true" attribute     –>      <config evaluator="string-compare" condition="Filesystems" replace="true">      <filesystems>         <filesystem name="Alfresco">            <store>workspace://SpacesStore</store>            <rootPath>/app:company_home</rootPath>       <disableChangeNotification/>               <!– Add a URL file to each folder that links back to the web client –>            <urlFile>               <filename>__Alfresco.url</filename>               <webpath>http://${localname}A:8080/alfresco/</webpath>            </urlFile>            <!– Mark locked files as offline –>            <offlineFiles/>            <!– Desktop actions –>            <desktopActions>               <global>                  <path>alfresco/desktop/Alfresco.exe</path>                  <webpath>http://${localname}A:8080/alfresco/</webpath>               </global>               <action>                  <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>                  <name>CheckInOut</name>                  <filename>__CheckInOut.exe</filename>               </action>               <action>                  <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>                  <name>JavaScriptURL</name>                  <filename>__ShowDetails.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 –>         <avmfilesystem name="AVM">            <virtualView/>         </avmfilesystem>              </filesystems>   </config></alfresco-config>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Map Your Network drive with \\alfresco109A\Alfresco

If this sovles your problem please reply with your comment  Smiley Happy
Welcome to the new Hyland Connect. Get started or submit feedback.