Solved

Getting the user's windows Id for a web page

Posted on 2013-05-24
2
263 Views
Last Modified: 2013-11-19
Hello,
Here is my problem.  I have .net web project that is used both internally and externally.  I'm building a page that is only going to be available internally on the site.  When the user goes to that page, I want to capture their windows login id.  I'm going to use IP address to restrict access to the page.  Now the site does have a login screen (and unfortnately I've inherited) but all the internal users use the same login access because a predicessor didn't want to have to handle granting individual accesses for the internal people.
So how can I (for this single page) get the user's Id but leave the other pages in the site not care about the login credentials?
Does this make sense?
And please don't answer with "force everyone to use individual logins", I tried to get that to happen and was shot down.
One last requirement, the .Net code (if applicable) that gets posted, please be in vb.net (not C#).
Thanks.
0
Comment
Question by:Kakoroat
2 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 200 total points
ID: 39194177
You can't get any more information from the user than what the user presents to you.
since they all use the same logon -- you can't get anymore user information, but you do get the users ip address you can give internal users access i.e. their ip is in the range of 192.168.0.0 -> 192.168.254.254 but external users you're out of  luck for company users getting access to that page.
0
 

Author Closing Comment

by:Kakoroat
ID: 39343224
Went a different route, so I'm killing the question.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
If you don't know how to downgrade, my instructions below should be helpful.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 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

12 Experts available now in Live!

Get 1:1 Help Now