cancel
Showing results for 
Search instead for 
Did you mean: 

Cifs on Windows7

nondum
Champ in-the-making
Champ in-the-making
Hi All

I'm having a problem with mapping Cifs drive on Windows7,It requests a user name and a password but then returns a "Failed to authenticate. Invalid user or password" is this Microsoft Problem or I'm missing some config on Alfresco to accomodate windows7

Thanks
regards
Nondumiso
11 REPLIES 11

gnyce
Champ in-the-making
Champ in-the-making
Likely your Win7 is trying to use NTLMv2, Alfresco only gets NTLMv1.  On the Win7 client in question… Control Panel, Admin Tools, Local Security Policy.  Navigate to Security Settings, Local Policies, Security Options  –>  Change "Network Security: LAN Manager authentication Level" to "Send LM and NTLM - use NTLMv2 session security if negotiated".  Reboot just in case (not sure if it is needed), and try again.

nondum
Champ in-the-making
Champ in-the-making
Hi Gnyce

Thanks for the response.I followed every step of your response but it still not working it gives an error(Windows cannot access \\alfrescoentA\alfresco which is cifs server ,when I ping it replies.so I don't know what is the problem.

Thanks

mrogers
Star Contributor
Star Contributor
Have you turned cifs on by setting cifs.enabled in alfresco-global.properties?     Can you connect from older versions of Windows like XP?

And what OS is your server running?

shikarishambu
Champ in-the-making
Champ in-the-making
@mrogers

I have similar issue. I updated the local client (Windows 7) local security policy -to do LM and NTLM. Now, I can connect to Alfresco running on Windows 2003 server.

I still cannot connect to Alfresco running on Windows 2008 server. I did update the 2008 server's local security to do LM and NTLM. And, alfresco-global.properties has

cifs.enabled=true 
cifs.domain=WORKGROUP

I can connect to Alfresco running on both Windows 2003 and Windows 2008 servers from XP machines.

The Alfresco servers are not on the domain, just belong to default WORKGROUP, the client windows 7 is on a domain.

benswitzer
Champ in-the-making
Champ in-the-making
Running Alfresco on 64 bit Windows 7 or 2008 R2 can be trying.

You have to uninstall 'FIle and Printer Sharing for Microsoft Networks' and 'Client for Microsoft Networks' from your network adapter.  It was the only way I could get it to work.

Reason is that those features bind themselves to port 445 and it can't be blocked, or unbound.  Nothing else can bind itself to port 445 until you remove them.

Its a pain in the backside for development machines where you'd like to still use Windows sharing for other purposes.  For the server role, I personally have no issue with it and in fact, it ensures that machine can only serve content from Alfresco via CIFS.

Hope this helps.

Ben

shikarishambu
Champ in-the-making
Champ in-the-making
@Ben
thank you… thank you…thank you. That solved the issue

andoni
Champ in-the-making
Champ in-the-making
Thank you, thats pointed me to solution.

Its not necesary to uninstall printer sharing and Microsoft Client from LAN adapter properties, so you can access \\server and see you sharing and access \\serverA\alfreco using SMB/CIFS

I have tried the following and working too:

in http://wiki.alfresco.com/wiki/File_Server_Configuration yo can read:

———————————————————————————————————————————————————————-
The SMBDeviceEnabled registry key does not seem to be recognized on Vista and Windows 2008. In order to stop native SMB being used when the Alfresco CIFS server is being run under Vista or Windows 2008 the firewall rules can be updated to block inbound connections on port 445.

To configure Windows Firewall on the system running the Alfresco CIFS server:

1.Run the Windows Firewall with Advanced Security application. On Vista go to Control Panels, Administrative Tools. on Windows 2008 go to Start, Administrative Tools.
2.Click on the Inbound Rules item in the left hand column.
3.Scroll down to the File and Printer Sharing rules.
•The following rules should be enabled - File And Printer Sharing (NB-Datagram-In), File And Printer Sharing (NB-Name-In) and File And Printer Sharing (NB-Session-In).
•The File And Printer Sharing (SMB-In) rule should be disabled, this blocks the native SMB/port 445 traffic.
•The other File And Printer Sharing (…) rules are not required and can be left as is.
The following steps may also help to disable SMB 2.0 on Windows 2008:

1.Run regedit on Windows Server 2008 based computer.
2.Expand and locate the sub tree [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters]
3.Add a new REG_DWORD key with the name of Smb2
•Value name: Smb2
•Value type: REG_DWORD
•0 = disabled
•1 = enabled
4.Set the value to 0 to disable SMB 2.0, or set it to 1 to re-enable SMB 2.0.
5.Reboot the server.
———————————————————————————————————————————————————————-

arnosan
Champ in-the-making
Champ in-the-making
Thank you it worked !

eze_dru
Champ in-the-making
Champ in-the-making
Alfresco version?