For the built in Microsoft providers it only works with the sql provider. It should work with all membership providers, but unfortunately the ms ldap provider isn't a full membership provider implementation (they don't implement some of the required functions).