Skip to main content
Known Participant
November 24, 2008
Question

Unable to run scheduled task, getting a HTTP 401.2 error on output page

  • November 24, 2008
  • 5 replies
  • 1266 views
I have a scheduled task that I setup in the CF administrator. It calls a page which runs some queries and inserts some data into tables. I checked the output file, and I'm getting this error:

HTTP 401.2 - Unauthorized: Logon failed due to server configuration

I'm using Integrated Windows Authentication on my site because I'm using LDAP security within my application.

Does anyone know what I need to do so I can get this page scheduled? I'm assuming I need to mess with security, just not sure where to begin.
    This topic has been closed for replies.

    5 replies

    dmorand17Author
    Known Participant
    November 24, 2008
    Thanks for that info Ian, that makes a lot more sense now. I created a "utils" folder under my web app and put a new application.cfm file in there which doesn't reference the integrated security values.
    Inspiring
    November 24, 2008
    >
    > Is there a way to use integrated windows authentication and still run the
    > scheduled page?
    >

    No, windows integrated authentication requires a windows browser on a
    windows client connecting through a windows domain to a windows web server.

    Where this breaks is that the built in browser ColdFusion using to makes
    the scheduled task HTTP request is not windows. It can not respond to
    the special http headers requested by the web server.

    To make this works you need to turn off integrated security for the
    scheduled task file and make sure it runs under a CFM file that does not
    expect data from windows integrated security.

    On my system I usually create a "scheduled tasks" folder under my web
    root so that this folder can have different security and
    Application.cfm|cfc files from the rest of the web site.
    dmorand17Author
    Known Participant
    November 24, 2008
    Alright, I was able to get around it by creating a new folder under my site, and adding anonymous access to that folder. Thanks for the help tclaremont
    dmorand17Author
    Known Participant
    November 24, 2008
    I removed the integrated windows authentication from that file, and added anonymous access, but now the results have an error because I'm doing LDAP querying on my Application.cfm page, so I need to have the integrated windows authentication on.

    Is there a way to use integrated windows authentication and still run the scheduled page?
    tclaremont
    Inspiring
    November 24, 2008
    Go to the specific page in IIS and check the permissions. I am guessing that the rights are not set appropriately.