cancel
Showing results for 
Search instead for 
Did you mean: 

How to use CIFS? [Resolved]

nancygaillard
Champ on-the-rise
Champ on-the-rise
Hi!
Sorry for my english.

I would like to use Alfresco with CIFS. I need help to configure CIFS on my host.

I have just test to :
- create a virtual network drive with "Drive :Z" and "Folder: \\HOSTA\Alfresco"
- connect with : myAdminAlfrescoLogin and myAdminAlfrescoPassword

but my connection failed as if my password was wrong…but i can connect with Alfresco Share with this password.

Alfresco Community 4.2
OS : Windows 7, 64 bits

in my system proprerties it is wroten :

Computer name       : HOST
Full Computer name    : HOST.DOMAIN.local
Domain         : DOMAIN.local
(it is on a network)

in my file-servers.properties :

<blockcode>
### CIFS Server Configuration ###
cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=
cifs.broadcast=255.255.255.255
# An empty value indicates bind to all available network adapters
cifs.bindto=
cifs.ipv6.enabled=false
cifs.hostannounce=true
# Enable the use of asynchronous sockets/NIO code
cifs.disableNIO=false
# Disable the use of JNI code. Only currently affects Windows
cifs.disableNativeCode=false
# Session timeout, in seconds. Defaults to 15 minutes, to match the default Windows client setting.
# If no I/O is received within that time the session is closed by the server
cifs.sessionTimeout=900
# Maximum virtual circuits per session
# Should only be changed when using Terminal Server clients
cifs.maximumVirtualCircuitsPerSession=16

# Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.sessionPort=139
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138

# Optional WINS server primary and secondary IP addresses. Ignored if autoDetectEnabled=true
cifs.WINS.autoDetectEnabled=true
cifs.WINS.primary=1.2.3.4
cifs.WINS.secondary=5.6.7.8

# CIFS session debug flags (also enable org.alfresco.fileserver=debug logging level)
# Comma delimeted list of levels :-
#    NETBIOS, STATE, RXDATA, TXDATA, DUMPDATA, NEGOTIATE, TREE, SEARCH, INFO, FILE, FILEIO, TRANSACT
#    ECHO, ERROR, IPC, LOCK, PKTTYPE, DCERPC, STATECACHE, TIMING, NOTIFY, STREAMS, SOCKET, PKTPOOL
#    PKTSTATS, THREADPOOL, BENCHMARK
cifs.sessionDebug=

# Big Switch, are the Desktop Actions and URL shortcuts shown for CIFS ?
cifs.pseudoFiles.enabled=true

# CIFS URL for alfresco explorer
cifs.pseudoFiles.explorerURL.enabled=true
cifs.pseudoFiles.explorerURL.fileName=__Alfresco.url

# Cifs URL for alfresco share
cifs.pseudoFiles.shareURL.enabled=false
cifs.pseudoFiles.shareURL.fileName=__Share.url
</blockcode>

What can I do?
13 REPLIES 13

nancygaillard
Champ on-the-rise
Champ on-the-rise
However, I don't understand why my CIFS connection did'nt work with the default authentification.chain, even if I understood it is best to use kerberos

nancygaillard
Champ on-the-rise
Champ on-the-rise
i read too that the new versions of Alfresco, CIFS does't work with LDAP+SSO or something like that.
so it is probably normalto modify autentification.chain. But something is already  confused for me. If i change this marameter, should i download a kerberos server, or change other things on my server?
except for Alfresco-global.properties and share-config-custom.xml

nancygaillard
Champ on-the-rise
Champ on-the-rise
As you can see here => http://forums.alfresco.com/fr/comment/148245#comment-148245
I tested an other solution.

There is my modifications :
in alfresco-global.properties
<blockcode>
##default—————–
#authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-ad:ldap-ad
##updated——————
authentication.chain=alfrescoNtlm1:alfrescoNtlm
#alfrescoNtml1
ntlm.authentication.sso.enabled=false
alfresco.authentication.authenticateCIFS=true

#CIFS Configuration
cifs.enabled=true
</blockcode>

I had a share-config-custom.xml yet in C:\Alfresco\tomcat\shared\classes\alfresco\web-extension like the described block in the wiki here http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems#Alfresco_Share_SSO_using_NTLM

Then I changed the hosts file in my Windows Server 2008 R2 (in C:\Windows\System32\drivers\etc) adding :
 10.12.12.254   ALFSERVEURA 

ps : it is neither my real ip adress nor my server name


My problem :

-> the CIFS access work on the server
-> on two clients (on Windows 7) I tested the same thing but it didn't work, then I tested to connect to \\ALFSERVEURA and I seen repertories you will see in the attached screenshot.
-> I don't understant why i don't see any modification when I change the line alfresco.authentication.authenticateCIFS=true to alfresco.authentication.authenticateCIFS=false…
-> I had tested to had the followinf lines in alfresco-global.properties, change the cifs.serverName (and the hosts file) but it is the same thing

<blockcode>
#CIFS Configuration
cifs.enabled=true
cifs.broadcast=10.12.12.255
cifs.domain=MYDOMAIN
#cifs.serverName=${localname}A
cifs.serverName=CIFS-ALF
cifs.hostannounce=true
</blockcode>

I had searched how to obtain broadcast, I think it is good. The domain, I took in MYDOMAIN.local the part "MYDOMAIN', and I think it is good too. I don't really know what is cifs.hostannounce. Shame on me.

ps2 : I don't know if my phrases and the used english grammar rules are comprehensible, I just hope they are more or less correct xD … Alfresco make me practise english!

nancygaillard
Champ on-the-rise
Champ on-the-rise
Smiley Happy
After some days, there is my solution …
I added in the hosts files on client too :
 10.12.12.254   ALFSERVEURA 

With My real CIFS server name and a random address of my network.

I am so happy thank you all!