Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based on a probl...