title: LDAP compare attributes
body: <p>I would like to filter for all LDAP objects where the CN does not equal the sAMAccountName. Therefore I wrote the following query, which unfortunately neither works nor seems to be RFC compliant:</p>
  
  <p><code>(!(cn=sAMAccountName))</code></p>
  
  <p>Does anybody know how to acheive the desired functionality?</p>
  
  <p>Best regards
  Thomas</p>