I'm facing a problem with my forms authentication that has consumed me some good hours.
My forms authentication points to 2 providers. Both are AD using a ldap connection to diferent domains.
I have the following provider configuration on my web.config
<membership defaultProvider="AD">
<providers>
<add name="AD" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADService" connectionUsername="domain1\Admin" connectionPassword="Password" connectionProtection="None" attributeMapUsername="sAMAccountName" enableSearchMethods="true" />
<add name="AD2" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADTeste" connectionUsername="domain2\Admin" connectionPassword="Password123" connectionProtection="None" attributeMapUsername="sAMAccountName" enableSearchMethods="true" />
</providers>
</membership>
PeoplePicker is unable to find users from the second connection. I already added the provider, but still have the problem. Does anyone have an idea what i'm missing ?
Here follows my on web.config
<PeoplePickerWildcards>
<clear />
<add key="AD" value="%" />
<add key="AD2" value="%" />
</PeoplePickerWildcards>