Hi,
I did find and fix a bug, it seems to have been introduced during some work on support for fallback to database authentication when using LDAP. The changes was causing it to fail to increment the failed password attempt count.
If you look in Web/Components/mojoMembershipProvider.cs in the ValidateUser method, find this code:
string user;
if (!siteSettings.UseLdapAuth || (siteSettings.UseLdapAuth && WebConfigSettings.UseLDAPFallbackAuthentication))
{
user = SiteUser.Login(siteSettings, userName, encPassword);
if ((user != null) && (user != String.Empty))
{
result = true;
siteUser = new SiteUser(siteSettings, userName);
}
}
and change it like this:
string user;
if (!siteSettings.UseLdapAuth || (siteSettings.UseLdapAuth && WebConfigSettings.UseLDAPFallbackAuthentication))
{
user = SiteUser.Login(siteSettings, userName, encPassword);
if ((user != null) && (user != String.Empty))
{
result = true;
siteUser = new SiteUser(siteSettings, userName);
}
else if (!siteSettings.UseLdapAuth)
{
// need to create the user here so we can increment the failed password attmpt count below
siteUser = new SiteUser(siteSettings, userName);
}
}
Hope that helps,
Joe