title: Python ldap connection test
body: <p>I want to be able to test that a connection to a host and port is valid.</p>
  
  <p>I'm using the current line:</p>
  
  <pre><code>ldapObject = ldap.open(host="host", port=389)
  </code></pre>
  
  <p>This seems to return an instance.  I need to determine if it can find the host or not?</p>
  
  <p>Any suggestions?</p>