Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting the user's windows Id for a web page

Posted on 2013-05-24
2
Medium Priority
?
273 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 84

Accepted Solution

by:
David Johnson, CD, MVP earned 400 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Suggested Courses

972 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