Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2005, 03:52 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Determine Credentials

I have a webpage that users can upload files to one of my servers. Before the user can access the webpage, he/she must log onto my company's intranet. How can I capture who is logged into the intranet site so that I can use it in my code?

 
Old October 31st, 2005, 05:11 AM
Authorized User
 
Join Date: Jul 2005
Location: Chennai, Tamil Nadu, India.
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use System.Security.Principal class and WindowsPrincipal to get the current Identity, which role (Administrator/User) he belongs to.

Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/ and http://deepakvasudevan.blogspot.com/
 
Old November 1st, 2005, 12:18 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Will this give me their Active Directory username that they used to log into the intranet? If not, is there anyway to get that?





Similar Threads
Thread Thread Starter Forum Replies Last Post
AD Credentials gygaxx Visual Basic 2005 Basics 4 January 10th, 2007 08:32 AM
Regarding credentials Jayapradha .NET Framework 1.x 0 November 7th, 2006 06:42 AM
Using windows login credentials aldwinenriquez ASP.NET 2.0 Professional 0 June 18th, 2006 08:34 PM
Render and credentials TonyStoker Reporting Services 0 May 17th, 2006 05:53 PM
Login credentials? mikedeepak Classic ASP Professional 1 February 13th, 2006 08:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.