Results 1 to 4 of 4

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

  1. #1
    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?

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    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. #3
    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.

  4. #4
    Join Date
    May 2009
    Posts
    539

    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.

Similar Threads

  1. Auditing users on Active Directory server
    By poke147 in forum Active Directory
    Replies: 3
    Last Post: 09-09-2014, 05:19 PM
  2. Active Directory Users missing attribute
    By tim.creemers in forum Active Directory
    Replies: 4
    Last Post: 27-03-2012, 04:42 PM
  3. Replies: 2
    Last Post: 01-05-2009, 11:20 PM
  4. Displaying expiry dates of users in Active Directory
    By jkinga in forum Windows Software
    Replies: 3
    Last Post: 05-03-2009, 02:32 AM
  5. Active Directory Authentication and DMZ server
    By Sukhwinder Singh in forum Active Directory
    Replies: 5
    Last Post: 30-11-2008, 03:09 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,569,210.04321 seconds with 17 queries