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.
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
Member
42 Points
118 Posts
beginner ( trying to connect login with AD credentials)
Nov 27, 2012 04:49 AM|callykalpana|LINK
Hi
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.
http://geekswithblogs.net/frankw/archive/2008/05/18/forms-authentication-with-active-directory-in-asp.net-2.0.aspx
I am abit confused with the web.config setting, particullarly this one.
<connectionStrings>
<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">
<providers>
<add name="DomainLoginMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionUsername="blueblank\myname" connectionPassword="user123"/>
</providers>
</membership>
Participant
860 Points
206 Posts
Re: beginner ( trying to connect login with AD credentials)
Nov 30, 2012 09:16 AM|Perkinsville|LINK
Hi,
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