7 Replies Latest reply on Sep 7, 2006 11:31 AM by cgsj_usa@yahoo.com

    CFLDAP Autologin with Activedirectory

    Mattastic Level 1
      Hi,

      I currently use ASP to get the username of the person logged in, and use this to log them in automatically to our intranet. Obviously this reduces the amount of password prompts, which is good.

      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.

      Any help would dbe really appreciated.

      Thankyou

        • 1. Re: CFLDAP Autologin with Activedirectory
          Level 7
          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?
          • 2. CFLDAP Autologin with Activedirectory
            tclaremont Level 2
            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.

            • 3. Re: CFLDAP Autologin with Activedirectory
              Mattastic Level 1
              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?

              Thankyou
              • 4. Re: CFLDAP Autologin with Activedirectory
                Level 7
                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.
                • 5. CFLDAP Autologin with Activedirectory
                  tclaremont Level 2
                  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:

                  Open firefox

                  Browse to about:config

                  Find “network.automatic-ntlm-auth.trusted-uris”

                  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:

                  “network.negotiate-auth.delegation-uris”
                  “network.negotiate-auth.trusted-uris”
                  • 6. Re: CFLDAP Autologin with Activedirectory
                    Mattastic Level 1
                    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?

                    Thankyou
                    • 7. Re: CFLDAP Autologin with Activedirectory
                      cgsj_usa@yahoo.com
                      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.

                      Chris