Fix max auth retries logic
LDAP backend