Mike Denka writes: > ldapsearch -x "(&(uidNumber>=20000)(objectclass=*))" uid uidNumber You must add ORDERING integerOrderingMatch after the EQUALITY rule for uidNumber in etc/openldap/schema/nis.schema. Or better, define your own attribute type with such an own ORDERING rule, so you won't have to hack the standard schema. -- Hallvard