hi,
currently i have an AD in the web.config, but now i need to create another one call ACAD in the web.config, but i am not sure how i can create two of them inside the web.config.
here is my AD code, and hope you can help me to add the ACAD in there as well.
thanks.
<configuration>
<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://ad.fullerton.edu/DC=ad,DC=fullerton,DC=edu" />
<add connectionString="Data Source=hhdsrv02;Initial Catalog=DBHUSR; Integrated Security=True" name="DBHUSRConnectionString" providerName="System.Data.SqlClient" />
<!--<add connectionString="Data Source=hhdstg03;Initial Catalog=DBHUSR; Integrated Security=True" name="DBHUSRConnectionString" providerName="System.Data.SqlClient" />-->
</connectionStrings>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5">
<assemblies>
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Default.aspx" defaultUrl ="~/Default.aspx" timeout="2880" name=".ASPXAUTH" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<membership defaultProvider="MyADMembershipProvider">
<providers>
<clear />
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
attributeMapUsername="sAMAccountName" />
</providers>
</membership>
</system.web>