title: How to connect to an OpenLDAP server using ADO (or else) and Delphi
body: <p>I'm trying to connect to an OpenLDAP server 'clone'.
  I've tried using Synapse Library but I was able to get only a part (about 50%) of our public contacts.</p>
  
  <p>I'm trying now the ADO way (I've read that ADSI was compatible with other LDAP servers) but I can't get it working.</p>
  
  <p>ADOConnection provider connection string looks like this :</p>
  
  <pre><code>Provider=ADsDSOObject;Encrypt Password=False;Integrated Security=SSPI;Data Source=NIS;Mode=Read;Bind Flags=0;ADSI Flag=-2147483648;
  </code></pre>
  
  <p>ADOConnection.LoginPrompt is set to true.</p>
  
  <p>ADOQuery SQL Statement looks like this :</p>
  
  <pre><code>Select Description FROM 'LDAP://192.168.xxx.xxx/fn=Public Folders/cn=user@domain.com/fn=ContactRoot' WHERE objectClass='*'
  </code></pre>
  
  <p>I'm getting an error when opening the ADOQuery (translated from French) :
  "An non valid directory path was sent"</p>
  
  <p>What is wrong here ?
  Is there any other <em>free</em> solution than ADO / Synapse ? </p>
  
  <p>Thank you in advance</p>
  
  <p>SW</p>