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]
- RE: Anonymous access and authentication Allan Clarke
- RE: Anonymous access and authentication Barney Boisvert
- Re:Anonymous access and authentication cf coder
- Re:Anonymous access and authentication cf coder
- RE: Anonymous access and authentication Bryan F. Hogan
- Re:Anonymous access and authenticati... cf coder
- RE: Anonymous access and authent... Bryan F. Hogan
- RE: Anonymous access and authent... Kwang Suh
- Re:Anonymous access and auth... cf coder
- RE: Anonymous access and aut... Mike Townend
- Re:Anonymous access and auth... cf coder