Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Access denied listing with cfdirectory when remote

Participant ,
Oct 27, 2009 Oct 27, 2009

Hello people, I working with cfdirectory to verify the contents of a local directory (this is for an intranet running on a mac). It works ok when I trest it in the local environment but it fails when I run the script from the remote server.

I'm a bit lost here. Is something I need to modify at the local server or the remote server? Is the local server not allowing access to the remote script or the remote server doesn't want to access a local machine due to security issues?

Thsnkd in advance.

Dani

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 27, 2009 Oct 27, 2009

The default configuration, at least on windows servers, is to allow access to only the local system on which ColdFusion is running.

In that scenario, one has to modify the user the ColdFusion runs as and give the user the desired permissions to these remote resources.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 27, 2009 Oct 27, 2009

Ian, thanks for your answer. This brings a problem...unless I can bypass it by calling a script on my local server, at least to perform cfdirectory operations...

I'm trying to do the following:

When a supplier approves a job, my client changes the status of that job to approved. When that happens, the application should be able to;

1) List the files related to that job (cfdirectory)

2) Zip those files (cfzip)

3) Upload those files to the ftp (cfftp)

But since the files are stored locally (huge graphic files), I'm stuck with the "access denied" situation.

Anyway, thanks so much Ian for clarifying this to me.

Dani Szwarc

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 27, 2009 Oct 27, 2009
LATEST

I think I'll do it differently:

1) Using either CF o a jQuery plugin, I select the files I want to zip.

2) I zip them

3) I upload them.

It's an extra step but it solves the problem with the directory and security.

Again Ian, thanks for adding your comment to my question.

Dani Szwarc

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources