Solved

Getting the user's windows Id for a web page

Posted on 2013-05-24
2
264 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Read this checklist to learn more about the 15 things you should never include in an email signature.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

911 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

18 Experts available now in Live!

Get 1:1 Help Now