This content has been marked as final. Show 7 replies
However, I would like to do this with CF, I can get cfldap to work,
but is there anyway I can do an autologin as with ASP.
Yes, probably quite easily. What are you login the user into where and how?
In other words exactly what do you want to do?
Assuming you are using Internet Information Services on the server (which might be a false assumption!)
Make sure your website is using Windows Integrated Authentication. (Do a web search on Windows Integrated Authentication)
Then, in your CF Code (I do this on my application.cfm page), you could do this: <CFSET UserName = #CGI.AUTH_USER#>
This will assign the username that the person is logged in as to a variable called "username".
If the variable is undefined, use CFLOCATION to shuffle the user to a login page.
Thanks for your replies.
Im using IIS and have Windows Authentication turned on.
Ive got the basics of this working with IE thanks, problem is FF still prompts me for a username/ password, does Windows Authentication not work with FF?
Ive got the basics of this working with IE thanks, problem is FF still
prompts me for a username/ password, does Windows Authentication not
work with FF?
Yes and no. Yes windows integrated authentication works in FF, no it
does not work behind the scenes without a prompt dialog box. That only
happens with IE.
Not sure if this will help.. I found it durng a quick web search on the problem...
If you need Windows Authentication in firefox do the following:
Browse to about:config
Modify the value and enter in your intranet sites that you must pass your username and password to.
For some sites I connect to I also had to add values to:
Great, thanks for your replies.
I've got authenticaion working in FF thankyou, my other problem is retreiving the groups that users are in. I've read about using the vertical pipe "|" as an attribute, so you can loop through the groups, does anyone know how to use this? Or does anyone else have any ideas?
Use cfldap and then pull the attribute "memberOf". This will give a list of the groups to which the user belongs. Hope that this helps. Thanks.