For one thing, it depends on which server you are using. If you are using
IIS, just forget trying to do Auth with CF. IIS intercepts all attempts to
pass authentication and tuns them agains the NT Users (local/domain) and
silently fails if the account isn't in that space. It never even calls CF.
I'm not too sure how it works on Apache, but I think it's the same way.
You can always write an ISAPI DLL to do your authentication, but I don't
think that's what you had in mind?
-Rick
-----Original Message-----
From: Stanislav Maximov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 8:04 AM
To: [EMAIL PROTECTED]
Subject: HTTP Authorization
Do anybody have any idea how to make HTTP authorization with CF?
I've tried something like this with no success (assuming user will enter
"user"/"password" as the credentials:
---
<cfif Auth_User is "user" and Auth_Password is "password">
success!
<cfelse>
<cfheader name="'WWW-Authenticate" value="BASIC base64encodingofname
realm=""Private""">
<cfheader statuscode="401" statustext="Unauthorized">
</cfif>
---
Please tell me were am I wrong?
TIA
stas@
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.