Solved

Getting NT Login - revisited...

Posted on 2004-08-03
8
385 Views
Last Modified: 2006-11-17
I know this question has seen some action in the past... but I am having issues.

I would like to get the NT LOGIN from REMOTE_USER, AUTH_USER, or WindowsIdentity.

I use this simple test code to check what Request Vars are available:

<TABLE border="1">
<TR>
<TD><B>Server Variable</B></TD>
<TD><B>Value</B></TD>
</TR>
<% For Each name In Request.ServerVariables %>
<TR>
<TD> <%= name %> </TD><TD> <%= Request.ServerVariables(name) %></TD>
</TR>
<% Next %>
</TABLE>

both REMOTE_USER and AUTH_USER are blank... Anyone know why this is? I am in an intranet environment running IIS 5.0. Can someone help me find something that works? I really only need the nt login username, I can then perform validation/control through LDAP queries using ColdFusion or ASP.
0
Comment
Question by:AndyBeckwith
  • 5
  • 2
8 Comments
 
LVL 16

Expert Comment

by:golfDoctor
ID: 11707257
Are you using NT Authentication for the Intranet users?  If not, they are still anonymous, and REMOTE_USER will only return IP address, if anything.  Login name will not be available if anonymous on intranet.
0
 
LVL 7

Expert Comment

by:j2nku
ID: 11707584
You have to remove the anonymous access to your web page (from IIS) - if removed, users must log in with their NT logins and you can get their username with AUTH_USER after they have logged in. No other way.
0
 

Author Comment

by:AndyBeckwith
ID: 11707628
So is there anyway to have IE automatically login? Sort of like Single Sign on?
0
 
LVL 16

Expert Comment

by:golfDoctor
ID: 11707664
No auto sign on, but may be able to have setting to remember login after first time.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 16

Expert Comment

by:golfDoctor
ID: 11707692
Or you could set up accounts for everyone in IIS, and have it use the NT Authentication, that should bypass signon...maybe?
0
 

Author Comment

by:AndyBeckwith
ID: 11708383
Going a little further, would any of you know how to automate the process of creating IIS accounts from the NT accounts that already exist?
0
 
LVL 16

Expert Comment

by:golfDoctor
ID: 11708452
IIS should be able to read NT accounts, without needing to set up new.  Should just be a setting in IIS.  
0
 
LVL 16

Accepted Solution

by:
golfDoctor earned 500 total points
ID: 11708472
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Remove all occurances from js string 12 51
Classic ASP + JS 4 67
Group by correlation 4 43
Add server behaviors to Dreamweaver CC 2015 2 86
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now