Added option to set the timeout value for LDAP and AD sources.