Solved

Getting NT Login - revisited...

Posted on 2004-08-03
8
390 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
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!

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

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
If-Then-Else ASP problem 6 72
Get hold of longitude and latitude in iframe string 11 52
Weighted Randomizing 6 33
ASP Error Handler 5 21
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

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