Solved

CFX problem

Posted on 2002-05-03
4
293 Views
Last Modified: 2013-12-24
Hi everybody,

System:
Coldfusion 5.0 (Linux)
Apache

I'm writing a CFX tag to securly retrieve passwords for our users. In order to confirm their identity i need the CFX to workout what directory the calling template is in (i have a UNIX library that uses the getUID() call) - but WITHOUT the user entering the template.

The only option i have come up with so far is using a CFML tag that uses getCurrentTemplatePath() (or whatever its called :) and then it calls the CFX. The down side of this is that you can decompile CFML tags very easily.

Points will go to the first viable solution other than the one above.

GR.
0
Comment
Question by:googlyralph
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
jimmy282 earned 200 total points
ID: 6988736
GetDirectoryFromPath(GetTemplatePath())

You can pass the above as a parameter to the CFX from the calling page.

Or just set it as a variable in your application.cfm and you are done!

Jimmy
0
 
LVL 1

Author Comment

by:googlyralph
ID: 6993635
Jimmy,

trying to avoid passing in a parameter, as user could call the resulting CFX with a string and then retrieve another users password.

GR.
0
 
LVL 11

Expert Comment

by:jimmy282
ID: 6994502
Well thats avoidable.

1)Encrypt the parameter and Send, then decrypt in CFX.
2) Pass Another Parameter and if that is passes only then CFX will run. e.g. "Hideme=Yes"

Jimmy


0
 
LVL 1

Author Comment

by:googlyralph
ID: 7095347
Sorry for the delay, didnt realise i hadnt closed these questions.

GR.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Splitting up a coldfusion site into 2 separate sites in IIS 3 104
Configure IIS to process JSON 10 92
Website URL redirection 10 80
Adding multiple JVM environments to RedHat 6 7 69
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
What You Need to Know when Searching for a Webhost Provider
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question