beginner ( trying to connect login with AD credentials) RRS feed

  • Question

  • User2015884762 posted


    I am a beginner to ASP.net, but would like to try out the login thingy. We have a active directory domain server in the office, and users need to be able to use the same credentials to access this asp.net web app.

    I have been reading and trying to implement this link and error on the membership keep appearing.


    I am abit confused with the web.config setting, particullarly this one.


    <add name="ADConnectionString" connectionString="LDAP://dotnetinspirations.com/CN=Users,DC=dotnetinspirations,DC=com"/> </connectionStrings>

    Our AD server's name is. - BLUE01.blueblank.com, the server's name is BLUE01, blueblank is the domain name.

    the other part I am confused is this one :

    What are the administrator details that I should use assuming that I dun have the administrator access to the AD server, I am just a developer trying to code to authenticate the users against the AD

    <membership defaultProvider="DomainLoginMembershipProvider">


    <add name="DomainLoginMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionUsername="blueblank\myname" connectionPassword="user123"/>



    Tuesday, November 27, 2012 4:49 AM


  • User-902516579 posted


    Have you considered using Windows Authentication...Kerberos?

    It might be eaiser to simply code you application, deploy it to IIS and configure the authentication type to be Windows Authentication - Negotiate.

    HTH, Benjamin

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 30, 2012 9:16 AM