ldapsearch greater than


You want to search for a field greater than a value, in your LDAP search.


To search for a field with a value greater than a given figure, we use >=. If you try to just use > it chucks out an error.


This is how to perform a greater than LDAP search.

ldapsearch -x -v-D"cn=Manager,dc=demo,dc=net"-w secret
-b"dc=demo,dc=net" "(lastlogin>=99999999)"


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

Leave a Reply

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