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

Re: trouble with filter



2006/11/15, matthew sporleder <msporleder@gmail.com>:
Try adding an index sub to objectclass?

test:~# cat /etc/ldap/slapd.conf |grep index
index           objectClass eq,sub

test:~# /etc/init.d/slapd restart
Stopping OpenLDAP: slapd.
Starting OpenLDAP: running BDB recovery, slapd.
test:~#

test:~# ldapsearch -x -D "cn=admin,dc=burp" -w <xxx> -s sub -b "dc=burp" "(objectClass=to*)"
# extended LDIF
#
# LDAPv3
# base <dc=burp> with scope sub
# filter: (objectClass=to*)
# requesting: ALL
#

# search result
search: 2
result: 0 Success

# numResponses: 1
test:~#


connection_get(11)
ldap_read: want=8, got=8
  0000:  30 24 02 01 01 60 1f 02                            0$...`..         
ldap_read: want=30, got=30
  0000:  01 03 04 10 63 6e 3d 61  64 6d 69 6e 2c 64 63 3d   ....cn=admin,dc= 
  0010:  62 75 72 70 80 08 34 38  37 72 61 73 69 6d         burp..<xxx> 
ldap_read: want=8 error=Resource temporarily unavailable
==> bdb_bind: dn: cn=admin,dc=burp
send_ldap_result: err=0 matched="" text=""
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........   
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........   
connection_get(11)
ldap_read: want=8, got=8
  0000:  30 34 02 01 02 63 2f 04                            04...c/.         
ldap_read: want=46, got=46
  0000:  07 64 63 3d 62 75 72 70  0a 01 02 0a 01 00 02 01   .dc=burp........ 
  0010:  00 02 01 00 01 01 00 a4  13 04 0b 6f 62 6a 65 63   ...........objec 
  0020:  74 43 6c 61 73 73 30 04  80 02 74 6f 30 00         tClass0...to0.   
ldap_read: want=8 error=Resource temporarily unavailable
SRCH "dc=burp" 2 0    0 0 0
    filter: (?=undefined)
    attrs:
<= bdb_equality_candidates: (objectClass) index_param failed (18)
send_ldap_result: err=0 matched="" text=""
  0000:  30 0c 02 01 02 65 07 0a  01 00 04 00 04 00         0....e........   
ldap_write: want=14, written=14
  0000:  30 0c 02 01 02 65 07 0a  01 00 04 00 04 00         0....e........   
connection_get(11)
ldap_read: want=8, got=7
  0000:  30 05 02 01 03 42 00                               0....B.          
ldap_read: want=8, got=0