Solved

CGI.Auth_User not populated through IIS

Posted on 2003-11-03
5
3,327 Views
Last Modified: 2013-12-20
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>
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!
0
Comment
Question by:edsteele
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 17

Expert Comment

by:anandkp
ID: 9676195
I tried this :<cfoutput>#CGI.Auth_User#</cfoutput> & its outputting a NULL value
hence ur RemoveChars() is throwing up a error !

I'll chk up with my sysadmin & get back to u.
0
 
LVL 1

Author Comment

by:edsteele
ID: 9678506
Thank you.  That is exactly what I am seeing!
0
 
LVL 2

Accepted Solution

by:
jonnygo55 earned 300 total points
ID: 9695788
it sounds like the ntfs permissions for the directory has changed...perhaps allowing too much access...thus your users are not having to login using their nt authenication...so check the directory security itself(not through iis) and see if there is anything fishy there...it should be restricted to admins, IUSR, system, and perhaps ColdFusion service....
0
 
LVL 1

Author Comment

by:edsteele
ID: 9696958
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.
0
 
LVL 1

Author Comment

by:edsteele
ID: 10745346
I had to turn off anonymous access through IIS.  Once I did that, it worked.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question