views:

24

answers:

1

Hi

Im looking to create a web application using ASP.NET MVC or PHP (not decided yet!) and I want to use the local ActiveDirectory to register users. Can anyone point out how to do this on PHP or ASP.NET?

Would like answers on any of the technologies

Best regards, David

+2  A: 

For ASP.NET MVC you should ActiveDirectory membershipProvider. Check this MSDN for more information, how to use and configure it. You have several ways to implement this:

  • with Windows authentication, which basically tells to the browser to handle the authentication process for you (gathering the username and password from the user)
  • with Form authentication, where you have to implement your custom form in order the user to be able to provide you with his username and password.

For PHP you integration will be not so out-of-the-box. To be honest I've never tried this, but you should deal with the LDAP object to be able to integrate your Active Directory. You can try this article for more info.

anthares