edsteele
asked on
CGI.Auth_User not populated through IIS
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\ta d.cfm: line 23
21 : <p>Username:<cfoutput>#CGI .Auth_User #</cfoutpu t> - <cfoutput>#dompos#</cfoutp ut></p>
22 :
23 : <cfset user=LCase(RemoveChars(CGI .Auth_User , 1, dompos))>
24 :
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!
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\ta
21 : <p>Username:<cfoutput>#CGI
22 :
23 : <cfset user=LCase(RemoveChars(CGI
24 :
25 : <!--- <cfoutput>dompos=#dompos#<
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!
ASKER
Thank you. That is exactly what I am seeing!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The permissions haven't been touched in months. I double checked them and they look ok. Administrators have full access and everyone has read access.
ASKER
I had to turn off anonymous access through IIS. Once I did that, it worked.
hence ur RemoveChars() is throwing up a error !
I'll chk up with my sysadmin & get back to u.