|
| ||||||||||
| Tags: active directory, application, asp net, domain, iis |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How can users automatically login using form authentication and active directory on ASP NET 4.0?
. I wanted certain users to log in automatically if he/she is a part of a certain group. I know to check if the user belongs to a group but how do we log in the user into the application? |
|
#2
| |||
| |||
| Re: How can users automatically login using form authentication and active directory on ASP NET 4.0?
There’s nothing to call it greed. Anyways, it’s a very simple thing to do. All you need to do is use Windows authentication. This will definitely fulfill your so called ‘Greed’ ![]() |
|
#3
| |||
| |||
| Re: How can users automatically login using form authentication and active directory on ASP NET 4.0?
No! I cannot use the windows authentication as I need the user to be able to login manually with other name and password. |
|
#4
| ||||
| ||||
| Re: How can users automatically login using form authentication and active directory on ASP NET 4.0?
If you have used Form authentication before, it’s no big deal! In IIS you will need to enable Integrated Windows Authentication and disable anonymous access You can simply check for codes online to find appropriate solution. The first or second page of Google must fetch you what you need. In the global.asax file, you can place your code that does the lookup in the role database in the Application_AuthenticateRequest sub or possibly even the Session_Start. You can also provide some code that loads the users memberof and check for memberships to group sand assign a custom role if they belong to a group in AD. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How can users automatically login using form authentication and active directory on ASP NET 4.0?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auditing users on Active Directory server | poke147 | Active Directory | 2 | 26-04-2012 06:24 AM |
| Active Directory Users missing attribute | tim.creemers | Active Directory | 4 | 27-03-2012 04:42 PM |
| How to stop a group of users to login to active directory domain | TechPK | Operating Systems | 2 | 01-05-2009 11:20 PM |
| Displaying expiry dates of users in Active Directory | jkinga | Windows Software | 3 | 05-03-2009 01:32 AM |
| Active Directory Authentication and DMZ server | Sukhwinder Singh | Active Directory | 5 | 30-11-2008 02:09 AM |