cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable cifs in alfresco community version?

shikha
Champ in-the-making
Champ in-the-making
can anybody help in enabling cifs on alfresco community version.
or tell how to check whether cifs is enabled or not??

thankx in advance
23 REPLIES 23

shikha
Champ in-the-making
Champ in-the-making
hi drik
thanks for ur help. i m using window xp

mrogers
Star Contributor
Star Contributor
Well that's easy then Smiley Happy  No messing around needed.

dr_danger
Champ in-the-making
Champ in-the-making
I had trouble getting CIFS/SMB to work on Ubuntu. I fixed it with this:

I added
### CIFS/SMB Server Configuration ###
cifs.enabled=true
cifs.serverName="Alfresco"
cifs.hostannounce=true
to /opt/alfresco-3.4.c/tomcat/shared/classes/alfresco-global.properties

and removed samba:
sudo apt-get remove samba

Then restarted Alfresco and navigated to smb://<user>:<password>@hostname
works on Mac and Linux clients.

floh
Champ in-the-making
Champ in-the-making
I have the same problem, but on Windows 7 Ultimate x64

I've added this to C:\Alfresco\tomcat\shared\classes\alfresco-global.properties:
### CIFS/SMB Server Configuration ###
cifs.enabled=true
cifs.serverName="Alfresco"
cifs.hostannounce=true

restarted alfresco, but my windows doesn't find the smb server.

EDIT: Is http://localhost:8080/alfresco the address?

floh
Champ in-the-making
Champ in-the-making
Can anyone help me?

mrogers
Star Contributor
Star Contributor
Your URL is wrong.    The protocol for SMB is not http and the port is not 8080.

I suggest you study Dave's reply above.

floh
Champ in-the-making
Champ in-the-making
Where's Dave post?
\\localhost\alfresco doesn't work too

edit: my mistake, sorry

ianai
Champ in-the-making
Champ in-the-making
Thanks for the great information!  I'm successfully able to connect to my CIFS server.

I'm running a simple installation of Community on a Windows 7 desktop which is on a domain.

The trouble I'm having now is figuring out what the username would be to authenticate from another computer since my installation of Alfresco is NOT tied into our active directory.  Ultimately, should we go with Enterprise it no doubt will be, but that's a massive undertaking here at my agency.

Can anyone shed light on this?  What should I enter as the DOMAIN in order to access the share-drive portion?

Forgive my idiocy, and thanks,

Ian Smiley Happy

craig_michael_n
Champ on-the-rise
Champ on-the-rise
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?

drodinthe559
Champ in-the-making
Champ in-the-making
Did you ever get CIFS working on XP? I'm running into the same problem.