Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 February 13th, 2012, 05:57 AM
Authorized User
 
Join Date: Feb 2007
Posts: 39
Thanks: 2
Thanked 2 Times in 2 Posts
Default Integrate Active Directory authentication in a Web Application

Hi all,
I have a simple web application ASP.NET 4 that I'm developing on my local machine. Has just a few pages, very simple, with the default.aspx with the Start Page.

Now I need to adjust this web application to run on a pc connected in a network that uses Active Directory authentication, and I would need to intercept who is the user connected and show him only a few controls (not all of them) depending of his role.

What changes I must make on my application to permit this?

Thanks in advance.

Luigi
 
Old February 13th, 2012, 06:47 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default some ideas

Hi my friend

first set Mode attribute of Authentication tag in web.config to Forms

<Authentication Mode="Forms" />

this is because of manual and fully controlled authentication
and then use special command to get users list:

see these links:

http://www.codeproject.com/Articles/...irectory-via-C

http://www.daniweb.com/software-deve...threads/124345

and google knows more ...
__________________
happy every time, happy every where

Reza Baiat
The Following User Says Thank You to irProject For This Useful Post:
Ciupaz (February 13th, 2012)
 
Old February 13th, 2012, 09:43 AM
Authorized User
 
Join Date: Feb 2007
Posts: 39
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Thank you very much IrProject.
I'll follow the articles that you have mentioned.

Luigi





Similar Threads
Thread Thread Starter Forum Replies Last Post
web service+active directory+authentication margeb ASP.NET 1.0 and 1.1 Professional 0 November 13th, 2005 09:23 AM
Active Directory Authentication planeswalk General .NET 2 October 27th, 2004 09:43 AM
web application, get group name - active directory sara_1981 VB.NET 0 April 24th, 2004 01:36 AM





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