I managed to get it to work with the next web.config installation.
There were two problems / errors:
1st) I did not specify a container, so I followed @Kevin's prompts:
<configuration> <connectionStrings> <add name="ADConnectionString" connectionString="LDAP://myhost:389/O=this domain,CN=Users,DC=mydomain,DC=com"/> ....
I think this was relevant for CN, while O could be omitted here, but I donβt think it is very important ...
2nd) I put the DN base and username (in the form of uid =) together inside the connectionUsername parameter:
<membership defaultProvider="DefaultMembershipProvider"> <providers> <add name="DefaultMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionProtection="None" connectionUsername="uid=myid, O=this domain" connectionPassword="mypwd" attributeMapUsername="sAMAccountName" enableSearchMethods="True" />
Please note that in my case I needed to set uid = myid. I do not know if this could be a general solution; perhaps this is due to my company's ADAS configuration, I donβt know. I hope this can help some of you ... please vote if you find this solution helpful, thanks.
@Kevin: Thank you very much. You were very helpful!
Larry source share