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

Lock Down .cfm Pages in IIS

New Here ,
Oct 25, 2006 Oct 25, 2006
What is happening is that the images (.gif, jpg, and .doc) along with .html pages are protected via IIS, but the .cfm pages are being serve up in the browser.

How would I make it so that .cfm pages are not served up by IIS if they have Windows authentication enabled?

Thank you!
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
Engaged ,
Oct 26, 2006 Oct 26, 2006
Not sure what you are asking.

I would start by turning off annonymous access in IIS.
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
New Here ,
Oct 26, 2006 Oct 26, 2006
I am asking that the ".cfm" pages are protected in the folder just like the images and ".htm" pages.

I cannot get to the images and ".htm" pages because windows security prevents me from seeing them which is the correct behavior, but the "cfm" pages are served up and shouldn't be.

What is going on?

Anonymous access is already turned off.
We can use iAuth, but would rather not use it.

Are there no more ColdFusion Experts? Anyone left from the Allaire days or have you all jumped the cfml ship for .NET and Java?

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
Engaged ,
Oct 26, 2006 Oct 26, 2006
In your Application.cfm, put in a login script or authentication script. That'll work for all of your cfm pages.
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
New Here ,
Oct 26, 2006 Oct 26, 2006
There is no application.cfm right now. If I add the application.cfm what do you use to check that they are authenticated through Windows? There are no cookies or sessions being set.
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
LEGEND ,
Oct 26, 2006 Oct 26, 2006
There is no application.cfm right now. If I add the application.cfm
what do you use to check that they are authenticated through Windows?
There are no cookies or sessions being set.


I'm not sure what your issue is. When I set security in IIS it applies
to all my templates htm, cfm or otherwise. Once security is set CFML
can access the user from the cgi.auth_user variable.
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
Engaged ,
Oct 26, 2006 Oct 26, 2006
you mustbe using some database to authenticate the user. The same parameters can be used to authenticate whether the user should be allowed to view the cfm pages. You can also set ip addresses, url's that are allowed access etc. Depends on how you've set up authentication.
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
Engaged ,
Oct 26, 2006 Oct 26, 2006
Incase of a database athentication, you'll need to set up the database connection using the coldfusion administrator and then use <cflogin> to authenticate the user.
If you search the web, there are a number of cflogin scripts availabe. Look in easycfm.com
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
New Here ,
Oct 26, 2006 Oct 26, 2006
I don't want to use a database, I want to utilize the Active Directory groups in Windwos Security.
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
LEGEND ,
Oct 26, 2006 Oct 26, 2006
I don't want to use a database, I want to utilize the Active Directory
groups in Windwos Security.


Can you detail how you have security setup for you websites?
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
Engaged ,
Oct 26, 2006 Oct 26, 2006
sorry, I am out of depth here. Maybe someone else can give some suggestions
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
New Here ,
Oct 26, 2006 Oct 26, 2006
I was hoping to use the CGI_Auth_User in the application .cfm
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
Engaged ,
Oct 26, 2006 Oct 26, 2006
That would work too. You will still need to have a list somewhere of the authorized users so the comparison can be made and user authenticated.
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
LEGEND ,
Oct 26, 2006 Oct 26, 2006
I was hoping to use the CGI_Auth_User in the application .cfm

If you have anonymous login turned off and windows integrated or some
other IIS security turned on, then the cgi.authUser will be populated
with the domain/username of the logged in user.

We often use that in conjunction with <cfldap ...> to provide
authentication and validation with our systems. It is fairly straight
forward.

Are you getting a value in your cgi.auth_user field?
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
New Here ,
Oct 26, 2006 Oct 26, 2006
LATEST
We are using IIS and All I care about it authentication not authorization right now.
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