[Date Prev][Date Next] [Chronological] [Thread] [Top]

Finding the highest uidNumber used (was: Re: Supported RFC's and "features")


Howard Chu wrote:
> In OpenLDAP you would set an equality index on uidNumber and do a query
> for, e.g., (uidNumber<=2147483647) with sizelimit=1.

Sounds like an intriguing way to find the highest uidNumber, but

1. it doesn't seem to work:
> ldapsearch -x -W -z1 "(uidnumber<=65534)" uidnumber
# extended LDIF
# LDAPv3
# base <dc=tu-clausthal, dc=de> (default) with scope subtree
# filter: (uidnumber<=65534)
# requesting: uidnumber

# search result
search: 2
result: 0 Success
text: inappropriate matching request

# numResponses: 1

(Yes, I have an equality index on uidnumber, and my bdb Database
contains that index, and I used 2.4.5 for that query)

2. who guarantees that due to indexing the highest uidnumber will be
returned? Could it be that it is just because OpenLDAP is currently
coded to do it that way? Is there a RFC requiring OpenLDAP to do so?

Christian Marg                    mail  : mailto:marg@rz.tu-clausthal.de
Dezernat 2 TU Clausthal           web   : http://www.tu-clausthal.de
D-38678 Clausthal-Zellerfeld      fon   : 05323/72-2107
Germany                           jabber: ifcma@jabber.tu-clausthal.de

Attachment: signature.asc
Description: OpenPGP digital signature