Ok i struggled a lot with CIFS when i first started working with alfresco. Here is what i have learned.
You will need to edit your alfresco-global.properties file. This file is where you will want to change all of your configurations. Here is the location based on tomcat
/tomcat/shared/classes/alfresco-global.properties
For CIFS this is all you need to add.
alfresco.authentication.authenticateCIFS=true
cifs.enabled=true
cifs.serverName=${localname}
So add these lines, save the file and restart the alfresco. /opt/alfresco/alfresco.sh restart
The ${localname} is the name of your machine. An example would be that you name your server alfresco. It is recommended that you put this as your value
cifs.serverName=${localname}A
If your server name was named alfresco then to access the CIFS server you would need to create an alias called alfrescoA. The reason why they do this is to separate the CIFS server access from the web browser.
This is all the configurations you need to do for alfresco. If it is not working make sure you can even talk to alfresco, basically you don't have a firewall blocking you and the port. This can be a problem because on linux alfresco wants to bind to privileged ports. I personally don't want alfresco to run as a root, so i changed the ports.
Add these lines to alfresco-global.properties
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.sessionPort=1139
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
and add these lines to your iptables files
iptables -t nat -A PREROUTING -p tcp –dport 137 -j REDIRECT –to-port 1137
iptables -t nat -A PREROUTING -p tcp –dport 138 -j REDIRECT –to-port 1138
iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-port 1139
iptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-port 1445
You should now be able to talk to Alfresco.
To test connectivity ping the ip address of the server. If you put ${localname}A then ping <servername>A (example alfrescoA), if not ping your <servername> (example alfresco)
If you can't resolve the host ping the ip address. If you can't ping your ip address that holds alfresco then you have a problem beyond setting up CIFS.
If you are able to ping your ip address but not your alias, set up the alias and work on that until it pings alfresco
Next it is time to set up CIFS on your local machine.
Go to my computer and right click it. Click map network drive.
For the folder name enter this
\\alfrescoA\alfresco\(filepath)
or
\\alfresco\alfresco\(filepath)
It will prompt you for your credentials so enter in a valid alfresco user name and password.
Does this help?