Can be used
new PrincipalContext(ContextType.Domain,null)
without providing any connection strings for Active Directory.
When using ActiveDirectoryMembershipProvider you must specify the LDAP endpoint in web.config .
The site I'm working on will be deployed to several sites, and I donβt want to fill in the details in web.config for each decentralized one.
How to use Active Directory authentication across multiple domains on MSDN defines 3 (!) Membership providers to work with 3 domains that are not impressive. However, this article is from 2005, and it is dedicated to other tasks than what I need.
Question:
Is it possible to use ActiveDirectoryMembershipProvider so that the LDAP endpoint is not hardcoded in the web.config file?
I would prefer to use ActiveDirectoryMembershipProvider instead of PrincipalContext to have (potentially) the ability to call ChangePassword , etc.
source share