473,463 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows authentication and application data

Hi
I would like users of my application to user Windows authentication(I have
ASP.NET application) so user doesn't have to remember another
username/password pair.The problem is that context of application is heavily
dependent on user identity. Different users will get to view different items
in the lists. I also have some information about users in my application
like e-mail that is used by application for notifications (and users can
edit it). Can I map Windows Identity information to my data and if it is
possible how can it be done?
Thanks,
Shimon
Nov 18 '05 #1
2 1123
Basically you need to do the following

1. Use Basic Authentication in IIS.
http://www.microsoft.com/technet/pro...rv/technologie
s/iis/maintain/featusability/authmeth.mspx

2. Configure your ASP.NET application to Impersonate by setting the
<identity impersonate="true"/> (check the exact syntax and use Windows
authtication in web.config
http://msdn.microsoft.com/library/de.../en-us/cpguide
/html/cpconaspnetimpersonation.asp

3. Then use Context.User.Identity.Name to get the domain name and User
ID

If you are talking to Active Directory then you might want to refer to
this
http://groups.google.com/groups?q=Co...me&hl=en&lr=&i
e=UTF-8&selm=0c9601c31c16%248d628c50%24a001280a%40phx.gb l&rnum=1

Trevor Benedict R
Microsoft Certified Solution Developer

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
Thanks,
Shimon
"Trevor Benedict R" <tr********@nospam-yahoo.com> wrote in message
news:uh*************@TK2MSFTNGP12.phx.gbl...
Basically you need to do the following

1. Use Basic Authentication in IIS.
http://www.microsoft.com/technet/pro...rv/technologie
s/iis/maintain/featusability/authmeth.mspx

2. Configure your ASP.NET application to Impersonate by setting the
<identity impersonate="true"/> (check the exact syntax and use Windows
authtication in web.config
http://msdn.microsoft.com/library/de.../en-us/cpguide
/html/cpconaspnetimpersonation.asp

3. Then use Context.User.Identity.Name to get the domain name and User
ID

If you are talking to Active Directory then you might want to refer to
this
http://groups.google.com/groups?q=Co...me&hl=en&lr=&i
e=UTF-8&selm=0c9601c31c16%248d628c50%24a001280a%40phx.gb l&rnum=1

Trevor Benedict R
Microsoft Certified Solution Developer

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3

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

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
4
by: Matt | last post by:
The ASP.NET application connects to MS-SQL database, and I already disabled Anonymous access in IIS, and add ASPNET user in it. When I run the application, it throws the following error on windows...
1
by: Thomas Scheiderich | last post by:
I am having a problem connecting to an Sql Server using Windows Authentication. I am using the following command: server=Raptor;uid=tfs;password=tol1ee;database=ABC;Network Library =dbmssocn ...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
14
by: tshad | last post by:
I am trying to set up an intranet at work that will use our Active directory to authorize our users. We also want them to access the site from the outside (such as at home) and also be...
4
by: Gav | last post by:
Hi, I am writing a windows form application (C#) which access's data from an SQL server. The SQL server is using windows authentication only. At the moment I have to grant the domain users...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
6
by: Matt Adamson | last post by:
Guys, I'm unsure how to use windows authentication in an intranet application. I'd like to user existing windows account to identify users however the issue I have is how to then add settings to...
3
by: Sylvie | last post by:
My Windows Application has two forms, one form contains a grid (lets say Stock Listing), and the other is a form of one stock, contains some edit boxes for one stock's fields.. Is it possible to...
0
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
tracyyun
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.