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

Trouble using booleans



I'm having some trouble searching on boolean values with OpenLDAP
2.0.7.  Here's what I've got:

In my schema:

    attributeType (NAME 'nvoVolopInVolHere' SYNTAX 1.3.6.1.4.1.1466.115.121.1.7)
    objectclass (NAME 'newvolop' SUP top
         MAY (
    [...]
            nvoVolopInVolHere $
    [...]
         ) 
    [...]
      )

In my directory:

    [sgifford@sgifford rfc]$ ldapsearch -b o=newvoldir
    nvoID=1015460136_17489
    version: 2
     
    #
    # filter: nvoID=1015460136_17489
    # requesting: ALL
    #
     
    # 1015460136_17489,newvoldir
    dn: nvoID=1015460136_17489,o=newvoldir
    objectClass: top
    objectClass: newvolop
    nvoID: 1015460136_17489
    nvoVolopName: Information and Referral Workers Needed to handle Crisis Calls
    nvoAgencyName: Resource Center
    nvoVolopBlurb: We need I&R Workers
    nvoAgencyDepartment: Volunteer and Information Services
    nvoAgencyPostalAddress: 1401 S. Grand Traverse$Flint, MI 48503
    nvoVolopWantVolHere: TRUE
    nvoVolopInVolHere: TRUE
     
    # search result
    search: 2
    result: 0 Success
     
    # numResponses: 2
    # numEntries: 1

But when I search on that attribute:

    [sgifford@sgifford rfc]$ ldapsearch -b o=newvoldir nvoVolopWantVolHere=TRUE
    version: 2
     
    #
    # filter: nvoVolopWantVolHere=TRUE
    # requesting: ALL
    #
     
    # search result
    search: 2
    result: 0 Success
     
    # numResponses: 1

It's a very small directory (42 entries), so the only index right now
is on objectClass.

I can search for presence, with nvoVolopWantVolHere=*, but that's not
quite what I want.

Any suggestions?

Thanks,

----ScottG.