Plugin LdapSearch failed. Failed to bind LDAP host

PHP Warning

Warning: "substr() expects parameter 3 to be long, string given"

Warning: "ldap_bind(): Unable to bind to server: Can't contact LDAP server"