title: LDAP Invalid DN Syntax
body: <pre><code>string path = "LDAP://192.168.0.20/CN=users,DC=company,DC=ltm,DC=dom";
  
  DirectoryEntry dir = new DirectoryEntry(path, admin, pass, AuthenticationTypes.ServerBind);
  
  object value = dir.Properties["description"].Value;
  dir.Properties["description"].Value = "test";
  dir.CommitChanges();
  </code></pre>
  
  <p>The code generates a COMException : "Invalid DN syntax" at dir.Properties["description"].Value</p>
  
  <p>If I don't specify any the username and password and replace the DirectoryEntry initialization with:</p>
  
  <pre><code>DirectoryEntry dir = new DirectoryEntry(path);
  dir.AuthenticationType = AuthenticationTypes.ServerBind;
  </code></pre>
  
  <p>Then I get UnauthorizedAccessException at CommitChanges.</p>
  
  <p>Any ideas on what might be wrong are greatly appreciated.</p>