Howard Chu writes: >> Imagine I just want to know what's the max uidNumber used in my directory. >> actually, i ask the server to give all the uidNumbers and my client sort >> them. isn't it an horrible waste of bandwidth ? > > In OpenLDAP you would set an equality index on uidNumber and do a query for, > e.g., (uidNumber<=2147483647) with sizelimit=1.
What? That only finds the max uidNumber when you already know an almost-max value, so you can fill it into the filter. Without that you'd need to guess an upper limit and do a binary search. (Though you could use a sizelimit > 1 for that.) -- Hallvard
