The CFHTTP tag has 'username' and 'password' attributes that will pass along
credentials for basic authentication.  You probably have to pass the
credentials of your user to IIS.

That's just a WAG, but might be the problem.

Cheers,
barneyb

> -----Original Message-----
> From: Allan Clarke [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 26, 2003 8:49 AM
> To: CF-Talk
> Subject: Anonymous access and authentication
>
> Hello everybody,
>
> I'm trying to call a .asp file from my coldfusion page
>
> using cfhttp. When I browse the the cfm file in the
> browser, I see this message displayed on the browser:
>
> You are not authorized to view this page
> You do not have permission to view this directory or
> page using the credentials you supplied.
>
> HTTP 401.2 - Unauthorized: Logon failed due to server
> configuration Internet Information Services
>
> Now here is the code in the asp file (user.asp)
>
> <%
>
> Set ADSys = CreateObject("ADSystemInfo")
>
> response.write "User=" & ADSys.UserName
>
> %>
>
> Here is the code in the coldfusion file
> (getuserdetails.cfm)
>
> <CFHTTP url="" method="GET"
> timeout="30"/>
> <cfoutput>#CFHTTP.FileContent#</cfoutput>
>
> As you can see, I'm trying to get the user information
> from the active directory. To get round the error
> message I described above, I went to the webserver IIS
> Management Console, right clicked on the file
> user.asp, hit the "File Security" tab, hit the "Edit"
> button under "Anonymous access and authentication
> control" and ticked the "Annoymous access" check box.
>
> Now that anonymous access permissions are set on the
> file, when I call this file with the cfhttp tag, I
> don't see the error I was getting earlier (HTTP 401.2
> -
> Unauthorized: Logon failed due to server configuration
> Internet Information Services), but I get an asp error
> (error '80070534') and I know I get this error because
> active directory does not know who to look for because
> anonymous access permissions are set on the file. I
> don't know what to do from this point, was hoping
> somebody might know or have a solution to this
> problem.
>
> Best Regards
> cf coder
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to