case
28Jun/103

Alfresco CIFS shared drive authentication problem

I'm a newbie in Alfresco and honestly cannot find my way in there. If you are trying to develop a WebScript or some other type of service for Alfresco, you can either upload files one by one using the web interface or you can map the CIFS shared drive (\\workstationA\Alfresco\) and use it as a file-system. It seems it worked just fine in Windows XP and friends but I have Windows 7 and I simply could not make it work. It requests a user name and a password but then returns a "Failed to authenticate. Invalid user or password" message The hack I found seems really dumb and I'm sure there is a better solution out there but this works for me.

What you have to do is go to your hosts file (Windows\System32\drivers\etc\hosts) and add a new line in there mapping the workstaionA (Where workstationA is your computer name + the letter a) to some unused IP address.

13.13.13.13 workstationA

That's it, now it works and you can map it as a network drive and do your development in peace.

net use X: \\workstationA\Alfresco /user:admin admin /persistent:yes

Note: admin/admin are the Alfresco default username and password, you should change that and use yours.

Happy codding !