CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 4/5/2008 7:20:11 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
tonyjo123
Asp.Net User
windows authentication4/5/2008 7:20:11 AM

0/0

i am working with asp.net with c#

i need to include windows authentication in my intranet web application.

what is the difference b/w the following two methods of retrieving user login id.

which will be suitable for me?

 

(1)

System.Security.Principal.IPrincipal User;

User = System.Web.HttpContext.Current.User;

String MailId = User.Identity.Name;

 

(2)

string MailId = Request.ServerVariables["LOGON_USER"];

 

 


Tony J. Keeranchira
XiaoYong Dai –
Asp.Net User
Re: windows authentication4/8/2008 5:27:17 AM

0/0

Hi

The "User.Identity.Name" is used to obtain the username of login user in an ASP.NET page. But classic ASP don't have a "User.Identity.Name" property. So we usually retrieve ServerVariable value within classic ASP to obtain the username.


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
tonyjo123
Asp.Net User
Re: windows authentication4/8/2008 6:09:33 AM

0/0

so which will be suitable in my case.

will it works on a system where .net framework has not been installed???


Tony J. Keeranchira
XiaoYong Dai –
Asp.Net User
Re: windows authentication4/8/2008 10:15:31 AM

0/0

tonyjo123:
so which will be suitable in my case.

Hi

I suggest you use the .NET way (User.Identity.Name)

tonyjo123:
will it works on a system where .net framework has not been installed???

Sure, your whole asp.net website will down due to no framework is installed.


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
tonyjo123
Asp.Net User
Re: windows authentication4/8/2008 10:51:05 AM

0/0

thanks a lot for ur input


Tony J. Keeranchira
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
802.11 Wireless Networks: The Definitive Guide Authors: Matthew Gast, Safari Tech Books Online, Pages: 630, Published: 2005
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
MCSA/MCSE: Windows Server 2003 Network Security Administration (70-299) Authors: Russ Kaufmann, Bill English, Pages: 608, Published: 2004
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Programming .NET Security Authors: Adam Freeman, Allen Jones, Pages: 693, Published: -1
SQL Server 2005 Bible Authors: Paul Nielsen, Pages: 1293, Published: 2006
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Portable DBA: SQL Server Authors: Damir Bersinic, Stephen Giles, Pages: 352, Published: 2004
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005

Web:
Recipe: Enabling Windows Authentication within an Intranet ASP.NET ... Windows Authentication avoids the need to create a login form within an ... When using Windows Authentication, ASP.NET allows developers to create and ...
How To: Use Windows Authentication in ASP.NET 2.0 This How To shows you how to configure and use Windows authentication in an ASP. NET Web application. Windows authentication is the preferred approach ...
Integrated Windows Authentication (IIS 6.0) With Integrated Windows authentication (formerly called NTLM, ... Integrated Windows authentication uses Kerberos v5 authentication and NTLM authentication. ...
Integrated Windows Authentication - Wikipedia, the free encyclopedia Integrated Windows Authentication (IWA) is a term associated with Microsoft products that refers to the SPNEGO, Kerberos, and NTLMSSP authentication ...
Windows Authentication Blog Mar 18, 2006 ... The Windows Authentication Team has 4 Program Managers, 8 developers and 8 testers and works on the core Windows authentication components ...
Windows authentication: reasonable and gentle • The Register Feb 2, 2005 ... I sat at an MVP conference last year at Microsoft when Steve Ballmer discussed the authentication decision, and he was obviously conflicted. ...
ASP.NET.4GuysFromRolla.com: An Overview of Authentication and ... The Windows authentication provider is the default provider for ASP . ... Windows authentication in ASP.NET actually relies on IIS to do the authentication. ...
Authentication Modes Windows Authentication mode allows a user to connect through a Microsoft Windows NT® ... Mixed Mode (Windows Authentication and SQL Server Authentication) ...
Implementing Windows Authentication for Oracle Learn how to configure Oracle database servers to use Windows authentication and about the security implications involved.
Windows Authentication on Microsoft SQL Server authentication and Windows authentication. SQL Server authentication ... Pure Java Windows authentication supports connections to Microsoft SQL Server 2000 ...

Videos:
Windows Workgroup Part I - Introduction Download the Complete Video : http://impartlabs.blogspot.com Download the complete version of this video (download links) at : http://impartlabs.blog...
Windows Workgroup Part II - IP Configuration Download the Complete Video : http://impartlabs.blogspot.com
VNC Security How to deploy UltraVNC with encryption and Windows authentication. I also ramble a bit on why it's a good idea to do this if you are in an untrusted...
Genuine Windows is Ubuntu Edit.: New .ogg link: http://rapidshare.com/files/133695305/recording.ogg.html http://ubuntuforums.org/showthread.php?t=475709 "I just did this for...
Genuine Windows is Ubuntu Creaed by mig5 from an original post on the ubuntu forum I just did this for a laugh and didn't expect it to work. I went to microsoft.com using IE4...
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Unorthodox Hacking EP7: Hidden Windows Passwords Exposes a few of the areas where Windows hides stored authentication credentials.
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...
Windows Workgroup Part III - Workgroup Configuration Download the Complete Video : http://impartlabs.blogspot.com
Developing Win Apps w/ Visual Studio.NET Level 5 The Developing Win Apps w/ Visual Studio.NET Level 5 is part of KeyStone Learning Systems library of more than 1,200 CD-ROM and video-based informati...




Search This Site:










"the located assembly's manifest definition does not match the assembly reference. (exception from hresult: 0x80131040)"

performance issue with sorting/paging in a gridview?

can't connect to database error

converting c# to vb

is it possible to include an asp file into an aspx file?

unsupported c# or vb.net error message

looking for suggestions

why i cannot use "delete" and "edit" functions ???

problems with the string.replace() method

listbox multiple selected items

hosting details on multiple portals issue dnn2.0.4

http_referer in asp.net 2.0

two questions

dotnetnuke over 150,000 registered users

dnn universal provider design

login problem !

advance settings won't open

the 'type' attribute must be set to a valid type name (format: <typename>[,<assemblyname>]) membership provider

access issues calling exe

forms authentication problem with iis

running local tasks

problem with executing sql script

custom redirect is user is not in an assigned role

set a hyperlink to open in window.

how do you assign url to a virtual directory?

help! custom validator and sql

logins?

oop in ibuyspy store

web service is not running

error with ie 6 - cannot add new module!

 
All Times Are GMT