Added LDAP login 3 times attempt

Will automatic re-try login for 3 times if LDAP login fail.