473,698 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I get windows user account on my web page?

Is it possible for me to get the actual windows user account that a user is
logged in on their computer as? If they are logged on and authenticated on
my network, can I get that username from my web page? I hope this makes
sense. Thanks.
Feb 7 '06 #1
6 1499
Not if the website is anonymous. What authentication does is your website
using?
"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Is it possible for me to get the actual windows user account that a user
is
logged in on their computer as? If they are logged on and authenticated
on
my network, can I get that username from my web page? I hope this makes
sense. Thanks.

Feb 7 '06 #2
Is you are using windows auth for the site (as well as from IIS) and as
impersonation turned on then answer is yer.

HttpContext.Cur rent.User

"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Is it possible for me to get the actual windows user account that a user
is
logged in on their computer as? If they are logged on and authenticated
on
my network, can I get that username from my web page? I hope this makes
sense. Thanks.

Feb 7 '06 #3
I'm using the new asp.net 2.0 membership stuff for security. So, yes, it is
anonymous.

"Peter Rilling" wrote:
Not if the website is anonymous. What authentication does is your website
using?
"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Is it possible for me to get the actual windows user account that a user
is
logged in on their computer as? If they are logged on and authenticated
on
my network, can I get that username from my web page? I hope this makes
sense. Thanks.


Feb 7 '06 #4
Then I don't think so because IIS is not challenging the client for
credentials so it does not know who the person is.

"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:8D******** *************** ***********@mic rosoft.com...
I'm using the new asp.net 2.0 membership stuff for security. So, yes, it
is
anonymous.

"Peter Rilling" wrote:
Not if the website is anonymous. What authentication does is your
website
using?
"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
> Is it possible for me to get the actual windows user account that a
> user
> is
> logged in on their computer as? If they are logged on and
> authenticated
> on
> my network, can I get that username from my web page? I hope this
> makes
> sense. Thanks.


Feb 7 '06 #5
Yes, if you turn on Windows authentication in
IIS, and disable anonymous. Then you force network
login and can get the user account, but obviously
not the password. This is often done for Intranet
apps that need to be accessible from the Internet,
or when you need to restrict access to app functions
based on the logged-in user.
"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Is it possible for me to get the actual windows user account that a user is logged in on their computer as? If they are logged on and authenticated on my network, can I get that username from my web page? I hope this makes
sense. Thanks.

Feb 7 '06 #6
"lanem" <la***@discussi ons.microsoft.c om> wrote in message
news:A2******** *************** ***********@mic rosoft.com...
Is it possible for me to get the actual windows user account that a user
is
logged in on their computer as? If they are logged on and authenticated
on
my network, can I get that username from my web page? I hope this makes
sense. Thanks.


If this is a local intranet site, then yes you can - almost certainly
dependent upon configuration.

If this is a public Internet site, then no you can't - almost certainly
under any circumstances.
Feb 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
10239
by: Raj | last post by:
Hi, I'm a newbie with SQL Server 2000 Developer. I know that it is supposed to install on Windows XP Pro, but I keep running into the following message: "The logon account cannot be validated for the SQL Server service. Validate ...". I've looked for help and taken the advise of trying the user
4
1361
by: Mark | last post by:
Is there a way to use ASP.NET's windows authentication so that the user that is using our web page is the user that is connected to our SQL Server? This will allow us to leverage our domain roles/groups. Our connection string is below. The options I've found so far I don't like: 1. Impersonation - sql server permissions would be granted to this single account. 2. Granting rights to the ASP.NET user account on our SQL Server - sql...
4
1508
by: NWx | last post by:
Hi, I developed a small test app using ASP.NET. I left the vistual folder to be accessible only with windows integrated security. I try to access that app from another PC in my LAN. I don't have a domain controller, the lan works with Workgroup. When I access that page, I get a user login dialog, aking me to enter username / password
2
2623
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself is not able to access a specific network resource and I just can't figure out why. First of all, let me say this worked fine with IIS running on Win2000 Server. This has not worked since I upgraded to Windows Server 2003. My Platform: Windows...
4
2420
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). The problem is that the user who "owns" the service is always the ASPNET account. That's not good since you don't see the actual application (because it's owned by ASPNET). I've tried changed the processmodel section in the machine.config file to...
3
2408
by: serge calderara | last post by:
Dear all, I clearly underdand the advantage of both type of authentification but is it allowed or possible to set the Authentication mode to Windows and then handle a login form for defined users in Credential section like as follow : <authentication mode="Windows" > <forms loginUrl="Login.aspx"> <credentials passwordFormat="Clear"> <user name="Jessee" password="JuneBug"/>
17
5092
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the Windows XP IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because I'm trying to run an ASP.NET 2 site with 1.1 framework). I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the...
3
1767
by: thomson | last post by:
Hi All, If i log into my windows machine, Iam already authenticated against the AD, Inorder to identify the Groups, Do i need to check the Active Directory once again, or Windows Principal.IsInrole is sufficient. All the developers are using logon to a particular domain and doing the work, IF i access one of my developers machine , through my machine , which credentials it take ,will it take mine or
5
3302
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
4
5807
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this article: http://support.microsoft.com/?id=306158#4 This doesn't work in Windows 2008 Server, we receive the following exception:
0
8601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7716
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.