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

Help with an integer search?



Hi,
 
For days, I have been trying to understand how to do a search based on an integer value.
Initially I thought doing this search filter (itemnumber<=12) and having my attribute defined as such in my schema file would do it.
attributetype ( 1.3.6.1.4.1.14939.1.3.1.2 NAME 'itemnumber'
        DESC 'number for item in ldap'
        EQUALITY integerMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
        SINGLE-VALUE )
 
Then I find later that its actually stored as a decimal representation.
6.16. INTEGER

   ( 1.3.6.1.4.1.1466.115.121.1.27 DESC 'INTEGER' )

   Values in this syntax are encoded as the decimal representation of
   their values, with each decimal digit represented by the its
   character equivalent. So the number 1321 is represented by the
   character string "1321".
I gues I am alittle confused as to how I perform such an integer search?  Is this possible?
 
I am running OpenLDAP 2.1.5 on Solaris 8 with BerkeleyDB 4.1
 
Thanks,
 
Austin