Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Getting NT Login - revisited...

Posted on 2004-08-03
8
Medium Priority
?
393 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
[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
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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 2000 total points
ID: 11708472
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

609 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