Solved

Getting NT Login - revisited...

Posted on 2004-08-03
8
391 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
Independent Software Vendors: 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

728 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