title: How can I get the minimum required password length value from Active Directory in .NET
body: <p>I'm implementing a plugin architecture to implement authentication an external authentication mechanism for a web site.  One of the plugins I plan to provide is an ActiveDirectory plugin.  I'd like to implement some of the features of a MembershipProvider, including MinRequiredPasswordLength, but don't want to fully implement or configure an ActiveDirectoryMembershipProvider.</p>
  
  <p>Does anyone know how to query AD and get the minimum required password length?  I know that this can be set by GPO and vary by user/computer depending on policies, but I'd like to provide a default based on the domain default instead of an arbitrary number.</p>
  
  <p>[EDIT] The configuration <a href="http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.minrequiredpasswordlength.aspx" rel="nofollow noreferrer">example</a> for an ActiveDirectoryMembershipProvider shows this as being set in the configuration.  Is there no way to have this tied to the domain policies?</p>