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

(ITS#3582) ldapsearch (gecos=*name*) not finding



Full_Name: Piotr Kucharski
Version: 2.2.23
OS: Solaris 9
URL: 
Submission from: (NULL) (194.145.96.66)


$ ldapsearch '(sn=*kucharski*)' sn gecos
dn: uid=chopin,ou=People,dc=sgh,dc=waw,dc=pl
sn: KUCHARSKI
gecos: Piotr KUCHARSKI

$ ldapsearch '(gecos=*kucharski*)' sn gecos
[empty]

added "index gecos pres,eq,approx,sub", rebuilt slapindex, did not help
there are around 33000 entries in ldap

debug says:
conn=29 op=1 SRCH base="ou=People,dc=sgh,dc=waw,dc=pl" scope=2 deref=0
filter="(&(givenNam
e=piotr)(gecos=*kucharski*))"
conn=29 op=1 SRCH attr=gecos
==> limits_get: conn=29 op=1 dn="uid=czytnikldap,dc=sgh,dc=waw,dc=pl"
=> bdb_search
bdb_dn2entry("ou=people,dc=sgh,dc=waw,dc=pl")
search_candidates: base="ou=people,dc=sgh,dc=waw,dc=pl" (0x00000002) scope=2
=> bdb_dn2idl( "ou=people,dc=sgh,dc=waw,dc=pl" )
bdb_idl_fetch_key: @ou=people,dc=sgh,dc=waw,dc=pl
<= bdb_dn2idl: id=32656 first=2 last=32659
=> bdb_filter_candidates
        AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
        OR
=> bdb_list_candidates 0xa1
=> bdb_filter_candidates
        EQUALITY
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [b49d1940]
<= bdb_index_read: failed (-30989)
<= bdb_equality_candidates: id=0, first=0, last=0
<= bdb_filter_candidates: id=0 first=0 last=0
=> bdb_filter_candidates
        AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
        EQUALITY
=> bdb_equality_candidates (givenName)
=> key_read
bdb_idl_fetch_key: [e99017ba]
<= bdb_index_read 921 candidates
<= bdb_equality_candidates: id=921, first=3, last=32641
<= bdb_filter_candidates: id=921 first=3 last=32641
=> bdb_filter_candidates
        SUBSTRINGS
=> bdb_substring_candidates (gecos)
=> key_read
bdb_idl_fetch_key: [146a5eb0]
<= bdb_index_read: failed (-30989)
<= bdb_substring_candidates: 0, first=0, last=0
<= bdb_filter_candidates: id=0 first=0 last=0
<= bdb_list_candidates: id=0 first=3 last=0
<= bdb_filter_candidates: id=0 first=3 last=0
<= bdb_list_candidates: id=0 first=0 last=0
<= bdb_filter_candidates: id=0 first=0 last=0
<= bdb_list_candidates: id=0 first=2 last=0
<= bdb_filter_candidates: id=0 first=2 last=0
bdb_search_candidates: id=0 first=2 last=0
bdb_search: no candidates
send_ldap_result: conn=29 op=1 p=3
send_ldap_result: err=0 matched="" text=""