CGI.Auth_User not populated through IIS
Posted on 2003-11-03
I have a ColdFusion application that was working fine until a few days ago. For some reason it is no longer picking up the NT authentication. It is installed on IIS.
I get this error message when going to the first page:
"The second parameter (StartPos) of the function RemoveChars(String, StartPos, Count), which is now equal to 1, must be less than or equal to the length of the first parameter (String), which is now equal to and has length of 0
The Error Occurred in C:\Inetpub\wwwroot\eTAD\tad.cfm: line 23
21 : <p>Username:<cfoutput>#CGI.Auth_User#</cfoutput> - <cfoutput>#dompos#</cfoutput></p>
23 : <cfset user=LCase(RemoveChars(CGI.Auth_User, 1, dompos))>
25 : <!--- <cfoutput>dompos=#dompos#</cfoutput><br> --->"
As you can see in line 21 , I am printing out CGI.Auth_User. It comes back blank. In IIS, this application's directory is set to NT Authentication and is NOT set for anonymous. "dompos" is the position of the first "\" character. This is used to separate the domain from the user when the Auth_User is being populated properly.
This problem is fairly time-sensitive for me, so any help would be great!