Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
manu d. #1
CFLOGIN and IIS Authentication is not working
Hi
I am running CFMX7 on Windows2003 Server and IIS6 as webserver. As far as I
need single logins, I am using IIS with "Integrated Windows Security" for
authentication (ADS). To manage authorization in Coldfusion, I tried the "Web
server?based authentication user security example' on page 391 in the MX7
Develeppers Guide (see attached code).
Unfortunately the IsDefined("cflogin") allways evaluates to false (doc says:
This should never happen.) and I get the "Authentication data is missing."
message. Looking at the cgi vars, I see auth_user set to "domain\user" (the ADS
user I logged on with) and auth_type=Negotiate.
Can anyone help?
<cfcomponent>
<cfset This.name = "Orders">
<cffunction name="OnRequestStart">
<cfargument name = "request" required="true"/>
<cflogin>
<cfif IsDefined("cflogin")>
<cfif cflogin.name eq "admin">
<cfset roles = "user,admin">
<cfelse>
<cfset roles = "user">
</cfif>
<cfloginuser name = "#cflogin.name#" password = "#cflogin.password#" roles
= "#roles#" />
<cfelse>
<!--- This should never happen. --->
<h4>Authentication data is missing.</h4>
Try to reload the page or contact the site administrator.
<cfabort>
</cfif>
</cflogin>
</cffunction>
</cfcomponent>
manu d. Guest
-
cflogin
Hi, I'm using cflogin to build a simple application. If a user forgets their password, then they get asked a security question and if they answer... -
Using <cflogin>
Is there a way to use CFLOGIN without requiring cookies? If so, how? -
IIS Basic Authentication with CF MX 7 not working?
I have just built a new server (Win2k3, IIS 6.0) with CF 7 to replace an older CF 5 server (NT 4.0, IIS 4.0). I?m having trouble using Basic... -
Forms authentication not working???
I'm having a problem getting forms authentication to work. I have two web config files. The first one (located in the application directory) is... -
Authentication not working on HTTP-POST using NetworkCredential
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java...



Reply With Quote

