Thanks fro the awesome solution
Does it work with Ldap too? or its just for sql providers?
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).