ldapsearch logical NOT


You want to perform an LDAP search, matching entries which do not match certain criteria.



To perform a logical NOT we just use the exclamation mark ! – see example.



This is how to perform a logical OR LDAP search.

ldapsearch -x -v-D"cn=Manager,dc=demo,dc=net"-w secret
-b"dc=demo,dc=net" "(!(sn=Doe))"



[tags]ldapsearch syntax, openldap ldapsearch, LDAP Training School[/tags]


If you have found my website useful, please consider buying me a coffee below 😉

Leave a Reply

Your email address will not be published. Required fields are marked *