Home

CIFS on Windows XP

You are here

15 posts / 0 new
Last post
CIFS on Windows XP

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.

Re: CIFS on Windows XP

Hi

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

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

In such case CIFS server is not started.

Joglekar

Re: CIFS on Windows XP

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.

Re: CIFS on Windows XP

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.

Re: CIFS on Windows XP

Yes, I have checked both to no avail.

Any thoughts?

Re: CIFS on Windows XP

Have you gone through this thread http://forums.alfresco.com/en/viewtopic.php?f=8&t=938


Alfresco Partner of the Year 2012.
www.zaizi.com

** If this post was helpful, please click Yes on the Post Rating --> **

Re: CIFS on Windows XP

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

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?

Re: CIFS on Windows XP

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

Re: CIFS on Windows XP

Sadly, Alfresco != Free Beer.

Senior ECM Consultant, Capgemini NL

Re: CIFS on Windows XP

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

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

Re: CIFS on Windows XP

Hi,
I am facing problem with CIFS, to test that I have downloaded latest installation from site (3.2.0 (r2 2440) schema 3300) and installed freshly on my windows XP,
when I try to browse, it is saying "Can't find 'file://a/Alfresco', make sure the path or internet address is correct"
it is neither throwing any error on the log file even after enabling following lines

log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.smb.protocol.auth=debug
log4j.logger.org.alfresco.acegi=debug

nor it is working :x ,
I am really struggling finding out how to configure CIFS and how to see logs if there is any error

Plz help me

Thanks

Re: CIFS on Windows XP

What's in your alfresco-global.properties file? Have you turned on the cifs interface?

Senior Software Engineer
Alfresco

Re: CIFS on Windows XP

Thank you for your post
I read somewhere in the forum that by default it will be enabled and it will work, so I was trying with new installation without making any changes. after your post I have added alfresco-global.properties with following details

cifs.enabled=true
cifs.serverName=alfrescoA
cifs.hostannounce=true
cifs.domain=
cifs.broadcast=<My Alfresco server ip>
cifs.localname=${localname}A
cifs.urlfile.prefix=http://${localname}:8080/alfresco/

Then it started working :) , I think by default the broadcast details is like
cifs.broadcast=255.255.255.255
I feel that was the mistake,

I have LDAP configuration in my server, I hope CIFS will work with LDAP
I want to know is CIFS will work for all platform (like XP, VISTA,Window 7...)? I have tested with XP and VISTA and found working, I have not tested with any other OS, plz let me know if there are any issues, it should not come back after production :|

Thank again

Re: CIFS on Windows XP
Re: CIFS on Windows XP


Don't work..