added timeout for ldap