Hi All,
Our images reside on a remote file share and we are trying to link the BaseDir to this server without success. i.e"\\batman\root\userfiles\etc\"
Has anyone had success in doing this or figured out a work around?
Any suggestions would be greatly appreciated.
Thanks,
Bobby
Our images reside on a remote file share and we are trying to link the BaseDir to this server without success. i.e"\\batman\root\userfiles\etc\"
Has anyone had success in doing this or figured out a work around?
Any suggestions would be greatly appreciated.
Thanks,
Bobby
Re: Images on remote file share
Set in the config.ascx:
BaseUrl = "/userfiles/";
BaseDir = "\\\\batman\\root\\userfiles\\" ;
Then, in the IIS administration panel, create a virtual folder "userfiles" and make it point to \\batman\root\userfiles\
As long as the permissions to read and write in that folder are correct, then it should work
Re: Images on remote file share
Thanks for your reply. The configuration you have described is how it is set up (I got a few of the other IT guys to look at it in case I was going mad) i.e BaseDir = "\\\\batman\\root\\userfiles\\" or BaseDir = @"\\batman\root\userfiles\" ;
When I point it to a local server it works fine but still can't get it working on a remote file share. Can you confirm that the FCKFinder supports DFS?
If the problem is a permissions issue, I'm not clear what account I should set up to give read/write access? I use impersonation on the ASP.net website but the documentation seems to suggest that FCKFinder accesses the server as IUSR_servername. Can you confirm that this is the account that FCKFinder uses? If this is the case it may be a problem as it's not possible to give the remote file server a IUSR_servername read/write permissions as its not a network account. I have tried my account/Everyone/Service Account so far with no luck.
Thanks,
Bobby
Re: Images on remote file share
I'm trying to replicate what I've understood from your description, but so far I haven't managed to make IIS display the contents of the remote folder in windows7.
I'll explain better:
I'm testing with a windows2003 Server. If I create a local directory to host the files, it seems that the owner of those files is "Network Service"
I then used a remote share on a XP machine that has that folder open for everybody to read and write. I had no trouble at all to make it work, just the steps that I mentioned yesterday
Now I'm trying to put the shared folder in a windows7 machine, but so far I've been unable to make IIS work.
First I've added a new user to windows7 and marked a folder as shared for that user as read&write. Then I've verified that in windows2003 I can connect it as a network share with that user and password. So I've added it as a virtual folder in IIS, and in the IIS management I can see the contents of the folder.
But if I try to request the contents of that folder through IIS (CKFinder isn't involved, just a direct request for the resource) all that I get is a 500 error, and looking at the details in the log (500 16 1326) it seems that the error is that I made a mistake with the user or password: http://blogs.msdn.com/rakkimk/archive/2 ... bsite.aspx
But I can't understand it. I've configured in the credential's window the "machine\username" and password. The contents of it are shown while in the IIS manager, so I can't understand why the credentials are wrong.
So I can't use that to verify how to make CKFinder work in that situation, I'll need to use another machine and try to make it work with that combination
Just remember that every environment might be slightly different, so in the end you'll have to find out the exact configuration that matches your needs. For example, I can test only with Workgroup configuration, if you have a Domain controller then I can't recreate that situation if it has anything specific to it.
Re: Images on remote file share
Thanks again for your help. I guess what we need to figure out is if its possible to run the FCK Finder in our enterprise environment. We use windows server 2003. The baseDir is pointing to a production server that is a remote file share in a domain based distributed file system. Do you know if users with similar environments have been able to get it working and if so how are they doing it?
Cheers,
Bobby
Re: Images on remote file share
I have very little experience with IIS administration, but have you tried setting
in web.config to grant the correct permissions?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Images on remote file share
Our issues don't seem to be related to IIS. We can access the images through the browser. For you information though, I have tried the impersonation set up you have suggested without success. Our problem seems to be based around the FckFinder getting to the remote file share in a domain based dfs environment.
Cheers,
Bobby
Re: Images on remote file share
The FCK browser and uploader is working fine into FCK folder ROOT/includes/fckeditor/editor/filemanager/connectors/asp/Uploads/ and there is creating all category folders, files, media, flash and images, is uploading and browsing
But I need use a shared folder near of root like ROOT/files/userfiles/ and Im getting the same error
I already try set the path value ConfigUserFilesPath = into /includes/fckeditor/editor/filemanager/connectors/asp/config.asp using several methods like relative path, virtual path, fisical path ..... but nothing work.
I need the browser for search the files, Im using other ASP uploader and is working fine in my shared folder, is not permissions problems, just the FCK is returning error using an level up folder out of FCK folder, I think is a bug or Im doing something wrong setting FCK
Thanks
Re: Images on remote file share
So there's nothing in common between your problems and this thread.
Re: Images on remote file share
Re: Images on remote file share
Hello,
I've the same problem.
We have 2 servers: one for serving application (ASP/IIS 7), other to act like a file server (that controls a storage server). Both are on the same DOMAIN (LATAM) and we also have an Active Directory Account. This account is used to config. permission on the images folder (file server). That's because "Network Service" or "IUSR_xxx" are LOCAL users and can't be used for it on a different server.
We also have an DLL that have impersonation method. We're using it without problem for years. The concept is simple: After registering the DLL, the ASP code just needs to:
1. Call the impersonate method (giving that latam user/password)
2. Do what you wanna do, like create folder, copy files, delete files, etc
3. "revert to self" (stop impersonation and continue with others ASP scripts with the normal IUSR user)
Well.... We really enjoy CDFinder, but berfore buy it I need to check if it will work on our environment.
Please, can someone help me?
Best regards,
Vagner Monteiro
Re: Images on remote file share
Just a little insight: In core/connector/asp/Utils/FileSystem.asp, there is this lines:
-------
Private Sub Class_Initialize()
Set oFSO = server.CreateObject("Scripting.FileSystemObject")
tempFilePath = ""
End Sub
Private Sub Class_Terminate()
' If there was a temp file created, delete it.
cleanUpTempFile
Set oFSO = nothing
End sub
-------
Maybe one solution would be something like:
-------
Private Sub Class_Initialize()
Set oFM = Server.CreateObject( "SoftArtisans.FileManager" ) ' Impersonate user with privileges to create dirs at remote storage
oFM.LogonUser Application("sAp_DominioAD"), Application("sAp_UserStorage"), Application("sAp_PwdStorage"), 2
Set oFSO = server.CreateObject("Scripting.FileSystemObject")
tempFilePath = ""
End Sub
Private Sub Class_Terminate()
' If there was a temp file created, delete it.
cleanUpTempFile
Set oFSO = nothing
oFM.RevertToSelf
Set oFM = Nothing
End sub
-------
Re: Images on remote file share
Hi Vagner
Sorry for the late reply but I had lots of pending things and totally forgot about this after reading the post.
I can't test that kind of environment myself, once I tried to setup something basic with two 2003 servers as a test but I was able to do only some basic tests, so basic that are useless with regards to AD.
I think that your suggestion about adjusting the FIleSystem object might work, but there are two things to keep in mind:
- The image component: If you are trying to use the automatic asp.net scripts, then that script might need also some kind of impersonation code. I can't remember it right now, but I think that it could be something "as easy" as adjusting the web.config.
On the other side, if you are using one of the activeX components, then the situation is different as everything will remain in the same IIS session and you might not need any further adjustment.
-The second part is that you can test CKFinder, apply your changes and check if it is working or not, we could write lots of things about how it works, but the reality is that simply checking it should be far easier than everything else. In case that you have any trouble, the please try this wizard script as it might help you to understand the problem because you will get the exact error messages without having to "fight" with the user interface and repeating some actions to check if there's any difference.
Please, write back with any further question or a confirmation for other people that your suggestion does work.