Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How can users automatically login using form authentication and active directory on ASP NET 4.0?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 29-03-2012
Member
 
Join Date: Mar 2012
Posts: 27
How can users automatically login using form authentication and active directory on ASP NET 4.0?
  

Hey guys! I am under development of a web application in Asp in which I’m using form authentication with active directory users on a domain. Everything’s going cool without any issue but there’s a new greed in me these days. .
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?

Reply With Quote
  #2  
Old 29-03-2012
Member
 
Join Date: Apr 2009
Posts: 567
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í
Reply With Quote
  #3  
Old 29-03-2012
Member
 
Join Date: Mar 2012
Posts: 27
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.
Reply With Quote
  #4  
Old 29-03-2012
Member
 
Join Date: May 2009
Posts: 532
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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 3 09-09-2014 06:19 PM
Active Directory Users missing attribute tim.creemers Active Directory 4 27-03-2012 05:42 PM
How to stop a group of users to login to active directory domain TechPK Operating Systems 2 02-05-2009 12:20 AM
Displaying expiry dates of users in Active Directory jkinga Windows Software 3 05-03-2009 02:32 AM
Active Directory Authentication and DMZ server Sukhwinder Singh Active Directory 5 30-11-2008 03:09 AM


All times are GMT +5.5. The time now is 06:27 AM.