1
Answer

Cant connect to AD

I have an application which I have added all the required configurations to the Active Directory but when I try to log in it prompts me that the credentials are wrong.

When I check in the Active Directory, the user name and password that I would have used is there.

I log in using the username@domain according to my AD configurations.

Could you please help me if I may be leaving out something either at the active directory or in my web.config

these are the configurations I amde in the web.config:

<add name="ADConnectionString" connectionString="LDAP://pts.co.zw/CN=Users,DC=pts,DC=co,DC=zw" />

<!--<membership defaultProvider="MyADMembershipProvider">
  <providers>
    <add
       name="MyADMembershipProvider"
       type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
             Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
       connectionStringName="ADConnectionString"
       connectionUsername="pts\eyeball"
       connectionPassword="123456"
       enableSearchMethods="true"
       attributeMapUsername="userPrincipalName"/>
  </providers>
 </membership>-->

Answers (1)