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

craig_michael_n
Champ on-the-rise
Champ on-the-rise
Do you mean installing alfresco on XP or using XP as your client?

rajaa90
Champ in-the-making
Champ in-the-making
Hi,

I am trying to configure CIFS in MAC alfresco and testing connection using smb://localhost/alfresco and it cannot connect at all.

Can someone help me please?

Thanks.

Raja

ashokharnal
Champ in-the-making
Champ in-the-making
I have been able to configure CIFS in centos6 and use smbclient to create nodes (Alfresco 3.4.d). To those who may be interested
here is what configuration on my machine looks like:

/etc/hosts file
———————

127.0.0.1   localhost.localdomain   localhost
::1                   localhost6.localdomain6   localhost6
127.0.0.1           aurc.dgde.in   aurc
192.168.1.233   aurc.dgde.in   aurc

alfresco-global.properties file configuration is as:
————————————————————————
# Configure the CIFS server to use non-privileged ports
# CIFS ports being changed to above 1024
# Binding with ports below 1024,requires that Alfresco be run as root
cifs.enabled=true
cifs.serverName=localhost
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139

Firewall (/etc/sysconfig/iptables) configuration is as:
—————————————————————————–

# Generated by iptables-save v1.4.7 on Sat Nov  5 13:47:16 2011
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
# Redirect from port 445 to port 1445
-A PREROUTING -p tcp -m tcp –dport 445 -j REDIRECT –to-ports 1445
# Redirect from port 137 to port 1137
-A PREROUTING -p tcp -m tcp –dport 137 -j REDIRECT –to-ports 1137
# Redirect from port 138 to port 1138
-A PREROUTING -p tcp -m tcp –dport 138 -j REDIRECT –to-ports 1138
# Redirect from port 139 to port 1139
-A PREROUTING -p tcp -m tcp –dport 139 -j REDIRECT –to-ports 1139
COMMIT
# Completed on Sat Nov  5 13:47:16 2011
# Generated by iptables-save v1.4.7 on Sat Nov  5 13:47:16 2011
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed on Sat Nov  5 13:47:16 2011
# Generated by iptables-save v1.4.7 on Sat Nov  5 13:47:16 2011
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
# Accept Established/Related connections
-A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
# Accept ICMP packets
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
# Accept packets to apache web server
-A INPUT -p tcp -m tcp -m state –dport 80 –state NEW -j ACCEPT
# Accept packets to tomcat web server
-A INPUT -p tcp -m tcp -m state –dport 8080 –state NEW -j ACCEPT
# Accept packets to tomcat web server
-A INPUT -p udp -m udp -m state –dport 8080 –state NEW -j ACCEPT
# Accept packets to SSH server
-A INPUT -p tcp -m tcp -m state –dport 22 –state NEW -j ACCEPT
# Accept packets to  SMTP server https
-A INPUT -p tcp -m tcp -m state –dport 25 –state NEW -j ACCEPT
# Accept packets to  Web server https
-A INPUT -p tcp -m tcp -m state –dport 443 –state NEW -j ACCEPT
# Accept CIFS packets
-A INPUT -p tcp -m tcp -m state –dport 1445 –state NEW -j ACCEPT
-A INPUT -p tcp -m tcp -m state –dport 1139 –state NEW -j ACCEPT
-A INPUT -p udp -m udp -m state –dport 1137 –state NEW -j ACCEPT
-A INPUT -p udp -m udp -m state –dport 1138 –state NEW -j ACCEPT
-A INPUT -j REJECT –reject-with icmp-host-prohibited
-A FORWARD -j REJECT –reject-with icmp-host-prohibited
COMMIT
# Completed on Sat Nov  5 13:47:16 2011

Using smbclient to create folders, copy, upload, delete files/folders in Alfresco from shell
———————————————————————————————————————————-

If CIFS has been properly configured on Alfresco, log into CIFS from localhost as:

   
$ smbclient -Uadmin -p 1139 //127.0.0.1/alfresco

'admin' is Alfresco administrator; 1139 tcp/ip port. 'alfresco' is filesystem name and is the default.
Password of admin will be asked for and then you will be taken to smb shell.
Type 'help' to learn about other smb commands. Or 'help mkdir' to learn about a specific smb
command such as mkdir or lcd.

Both admin and his password can be combined on a single line separated by % as:

   
$ smbclient -Uadmin%adminpasswd -p 1139 //127.0.0.1/alfresco

Or, you can tell in which directory (-D), smb should open:

   
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice   //127.0.0.1/alfresco

Or. you can tell smbclient to do some work (-c) in alfresco folder (-D):
   
   
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice   -c  "mkdir myfolder"   //127.0.0.1/alfresco

Or, you can tell smbclient to copy a file from current folder in linux to an alfresco filesystem folder (-D)

   
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice/myfolder   -c  "put myfile.txt"   //127.0.0.1/alfresco

Or, cd to a local linux directory /home/Alfresco (lcd) and copy file myfile.txt from local linux directory to an alfresco filesystem folder (-D)

   
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice/myfolder   -c  "lcd /home/Alfresco ; put myfile.txt"   //127.0.0.1/alfresco

Or, if your /etc/hosts file is properly configured, you can use localhost name (aurc) as:

   
$ smbclient -Uadmin -p 1139 //aurc/alfresco

cver
Champ on-the-rise
Champ on-the-rise
I managed to map the Alfresco server (CentOS) as a shared drive on my Windows client, using \\alfresco\alfresco. But while it shows the list of share sites correctly (adding the new ones, etc.), the sites themselves are empty. They should contain a documentLibrary, shouldn't they ? Is this a problem of access rights ?