I am trying to figure out how to get the client's AD username.
So far everything I've found with google boils down to the following:
System.Environment.UserName
System.Security.Principal.WindowsIdentity.GetCurre nt.Name
But, they always give me the username ASPNET, which is what the IIS process
runs as. How do I get the user's username without them having to type it in.
What I'm trying to do is build an intranet website (without forms auth) that
will seemlessly log the user in using their AD credentials without the user
having to type anything into the website, simply go tothe URL and it picks
up the AD username and checks that against our SQL database.
Thanks 5 1684
Turn on impersonation along with windows auth in web.config and make sure
windows auth is also turned on in iis. http://www.netomatix.com
"Jon" <ru******@msn.com> wrote in message
news:Ox**************@TK2MSFTNGP05.phx.gbl... I am trying to figure out how to get the client's AD username.
So far everything I've found with google boils down to the following: System.Environment.UserName System.Security.Principal.WindowsIdentity.GetCurre nt.Name
But, they always give me the username ASPNET, which is what the IIS process runs as. How do I get the user's username without them having to type it in. What I'm trying to do is build an intranet website (without forms auth) that will seemlessly log the user in using their AD credentials without the user having to type anything into the website, simply go tothe URL and it picks up the AD username and checks that against our SQL database.
Thanks
Thanks for the info. Could you give a pointer or a link with a good
description on what is involved with turning on impersonation.
"Winista" <na*********@hotmail.com> wrote in message
news:ON**************@TK2MSFTNGP03.phx.gbl... Turn on impersonation along with windows auth in web.config and make sure windows auth is also turned on in iis.
http://www.netomatix.com
"Jon" <ru******@msn.com> wrote in message news:Ox**************@TK2MSFTNGP05.phx.gbl...I am trying to figure out how to get the client's AD username.
So far everything I've found with google boils down to the following: System.Environment.UserName System.Security.Principal.WindowsIdentity.GetCurre nt.Name
But, they always give me the username ASPNET, which is what the IIS process runs as. How do I get the user's username without them having to type it in. What I'm trying to do is build an intranet website (without forms auth) that will seemlessly log the user in using their AD credentials without the user having to type anything into the website, simply go tothe URL and it picks up the AD username and checks that against our SQL database.
Thanks
Here is a simple description of it.. http://www.winista.com/thirdeye/default.aspx
You may be able to find some detailed descriptions on MSDN about it.
"Jon" <ru******@msn.com> wrote in message
news:uA**************@TK2MSFTNGP02.phx.gbl... Thanks for the info. Could you give a pointer or a link with a good description on what is involved with turning on impersonation.
"Winista" <na*********@hotmail.com> wrote in message news:ON**************@TK2MSFTNGP03.phx.gbl... Turn on impersonation along with windows auth in web.config and make sure windows auth is also turned on in iis.
http://www.netomatix.com
"Jon" <ru******@msn.com> wrote in message news:Ox**************@TK2MSFTNGP05.phx.gbl...I am trying to figure out how to get the client's AD username.
So far everything I've found with google boils down to the following: System.Environment.UserName System.Security.Principal.WindowsIdentity.GetCurre nt.Name
But, they always give me the username ASPNET, which is what the IIS process runs as. How do I get the user's username without them having to type it in. What I'm trying to do is build an intranet website (without forms auth) that will seemlessly log the user in using their AD credentials without the user having to type anything into the website, simply go tothe URL and it picks up the AD username and checks that against our SQL database.
Thanks
If you have all the authentication set up properly. you can use:
user.Identity.Name or Request.Params("LOGON_USER")
Jon wrote: Thanks for the info. Could you give a pointer or a link with a good description on what is involved with turning on impersonation.
"Winista" <na*********@hotmail.com> wrote in message news:ON**************@TK2MSFTNGP03.phx.gbl... Turn on impersonation along with windows auth in web.config and make sure windows auth is also turned on in iis.
http://www.netomatix.com
"Jon" <ru******@msn.com> wrote in message news:Ox**************@TK2MSFTNGP05.phx.gbl...I am trying to figure out how to get the client's AD username.
So far everything I've found with google boils down to the following: System.Environment.UserName System.Security.Principal.WindowsIdentity.GetCurre nt.Name
But, they always give me the username ASPNET, which is what the IIS process runs as. How do I get the user's username without them having to type it in. What I'm trying to do is build an intranet website (without forms auth) that will seemlessly log the user in using their AD credentials without the user having to type anything into the website, simply go tothe URL and it picks up the AD username and checks that against our SQL database.
Thanks
Thanks!
"Winista" <na*********@hotmail.com> wrote in message
news:Oo**************@TK2MSFTNGP04.phx.gbl... Here is a simple description of it..
http://www.winista.com/thirdeye/default.aspx
You may be able to find some detailed descriptions on MSDN about it.
"Jon" <ru******@msn.com> wrote in message news:uA**************@TK2MSFTNGP02.phx.gbl... Thanks for the info. Could you give a pointer or a link with a good description on what is involved with turning on impersonation.
"Winista" <na*********@hotmail.com> wrote in message news:ON**************@TK2MSFTNGP03.phx.gbl... Turn on impersonation along with windows auth in web.config and make sure windows auth is also turned on in iis.
http://www.netomatix.com
"Jon" <ru******@msn.com> wrote in message news:Ox**************@TK2MSFTNGP05.phx.gbl... I am trying to figure out how to get the client's AD username.
So far everything I've found with google boils down to the following: System.Environment.UserName System.Security.Principal.WindowsIdentity.GetCurre nt.Name
But, they always give me the username ASPNET, which is what the IIS process runs as. How do I get the user's username without them having to type it in. What I'm trying to do is build an intranet website (without forms auth) that will seemlessly log the user in using their AD credentials without the user having to type anything into the website, simply go tothe URL and it picks up the AD username and checks that against our SQL database.
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Buddy Ackerman |
last post by:
I have an application where the client wants AD integration. The application requires that the user accounts reside in
the app's database. The application is a (.NET) webservices based app where...
|
by: Joey Edelstein |
last post by:
Hi,
We are trying to add a Client Certificate support for our web app that
emulates a hardware device web app.
The hardware uses a 2 factors authentication, which requires a Web
Service client...
|
by: Geraldine Hobley |
last post by:
Hello,
I have a stored procedure that returns a value but does not select any rows as shown below
How can I access the value of this return value from the database using datasets or dataadapters.
...
|
by: Scott M. Lyon |
last post by:
I'm having some strange problems with a VB.NET application that I support.
The application currently uses SystemInformation.UserName() and
SystemInformation.UserDomainName() to determine who is...
|
by: Sid DeLuca |
last post by:
I'm modifying the WSE2 HOL sample to develop my web service. I'm able to get
the client application's username token encrypted on the way out
(outputTrace.webinfo), but not on receipt from the...
|
by: simbarashe |
last post by:
Hie
could someone please help me with getting and using the current page url. I have a function that gets the url, I want to use it with header(location : XXX) but it wont work. The code is as...
|
by: dgleeson3 |
last post by:
Hello all
I have used the LoginForm1 class in a Visual studio 2005 VB
application.
Its the standard Username, Pasword request for user input.
I was hoping to use property procedures to get...
|
by: buntyindia |
last post by:
Hi,
I have a very strange problem with my application.
I have developed it using Struts.
I have a TextBox With Some fixed value in it and on Submit iam passing it to another page.
<html:form...
|
by: sgawas01 |
last post by:
i want the username of currently logged in user on client machine. want to use it for intranet authentication.
i dont want my application to show any popup asking for username and password. it...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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...
| |