?
Solved

CGI.Auth_User not populated through IIS

Posted on 2003-11-03
5
Medium Priority
?
3,350 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 900 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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 automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Suggested Courses

762 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