Use values with the same number of chars (here, 6) : dc=000001, dc=000002, ... dc=012345, ... dc=999999.
Then you can search though it using dc >= NNNNNN and dc <= MMMMM. Be aware that comparizons are done based on Strings, not on number, though the leading '0'. If your ldap server contains a MatchingRule which allow comparizon of numeric value, then declare a new AttributeType which use this matchingRule for Ordering (I don't know any Ldap server supporting this feature, but I don't know all the ldap servers too ...) If anybody has a better solution... hope it helps. Emmanuel. On 3/12/07, qazmlp <[EMAIL PROTECTED]> wrote:
I would like to store a range of numbers as the RDN value. Whenever a search query is done with a specific number and if it falls within the range given as an RDN of any entry, those matching entries should be returned. How exactly this can be done in the LDAP? --- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
-- Cordialement, Emmanuel Lécharny www.iktek.com --- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
