[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
weird search problems: some debug output
Ok, I narrowed the search down to get rid of extra debugging info.
this is the command I used:
ldapsearch -x -h localhost -b dc=45video,dc=com,ou=Domains,dc=dnx,dc=net
'objectClass=posixGroup'
I have an entry that looks like this: (irrelevant attributes omitted)
dn: dc=45video,dc=com,ou=Domains,dc=dnx,dc=net
objectClass: top
objectClass: dc
objectClass: dnsRR
objectClass: posixGroup
dc: 45video
gidNumber: 6002
Note: this is cut and pasted from a search for objectClass=top, so _that_
works
I started slapd like this:
/usr/local/libexec/slapd -d 1
Here's a portion of the debug output:
################### Begin Debug Output ###################
=> ldbm_back_search
dn2entry_r: dn: "DC=45VIDEO,DC=COM,OU=DOMAINS,DC=DNX,DC=NET"
=> dn2id( "DC=45VIDEO,DC=COM,OU=DOMAINS,DC=DNX,DC=NET" )
=> ldbm_cache_open( "/var/ldap/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (opened 0)
<= dn2id 4
=> id2entry_r( 4 )
=> ldbm_cache_open( "/var/ldap/id2entry.gdbm", 34, 600 )
<= ldbm_cache_open (opened 1)
=> str2entry
<= str2entry(dc=45video,dc=com,ou=Domains,dc=dnx,dc=net) -> -1 (0x80e1568)
<= id2entry_r( 4 ) 0x80e1568 (disk)
search_candidates: base="DC=45VIDEO,DC=COM,OU=DOMAINS,DC=DNX,DC=NET" s=2
d=0
=> filter_candidates
=> list_candidates 0xa0
=> filter_candidates
=> dn2idl( "@DC=45VIDEO,DC=COM,OU=DOMAINS,DC=DNX,DC=NET" )
=> ldbm_cache_open( "/var/ldap/dn2id.gdbm", 34, 600 )
<= ldbm_cache_open (cache 0)
<= filter_candidates 2
=> filter_candidates
=> list_candidates 0xa1
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "/var/ldap/nextid.gdbm", 34, 600 )
<= ldbm_cache_open (opened 2)
=> ldbm_cache_open( "/var/ldap/objectClass.gdbm", 32, 600 )
<= ldbm_cache_open (opened 3)
=> key_read
<= index_read 0 candidates
<= equality_candidates NULL
<= equality_candidates 0
<= filter_candidates 0
=> filter_candidates
=> equality_candidates
=> ldbm_cache_open( "/var/ldap/objectClass.gdbm", 32, 600 )
<= ldbm_cache_open (cache 3)
=> key_read
<= index_read 84 candidates
<= equality_candidates 84
<= filter_candidates 84
<= list_candidates 84
<= filter_candidates 84
<= list_candidates 1
<= filter_candidates 1
====> cache_return_entry_r( 4 ): created (0)
=> id2entry_r( 4 )
====> cache_find_entry_id( 4 )
"dc=45video,dc=com,ou=Domains,dc=dnx,dc=net" (found) (1 tries)
<= id2entry_r( 4 ) 0x80e1568 (cache)
ldbm_search: candidate 4 does not match filter
====> cache_return_entry_r( 4 ): returned (0)
send_ldap_search_result 0::
send_ldap_response: msgid=2 tag=101 err=0
################### End Debug Output ###################
My slapd.conf file looks like this: (comments omitted)
################### slapd.conf ###################
schemacheck on
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/radius.schema
include /usr/local/etc/openldap/schema/isp.schema
include /usr/local/etc/openldap/schema/dns.schema
access to attrs=billpackage,billtype,dialupaccess,status
by dn="uid=(weston|davidj|dennyj),ou=People,dc=itdonline,dc=net"
write
by * none
access to attr=userpassword
by self write
by * auth
access to attrs=entry
by self write
by * read
access to *
by self write
by * read
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
TLSCertificateFile /home/sites/main/conf/ssl/server.crt
TLSCertificateKeyFile /home/sites/main/conf/ssl/server.key
defaultsearchbase "dc=net"
password-hash {CRYPT}
database ldbm
suffix "dc=net"
rootdn <omitted>
rootpw <omitted>
directory /var/ldap
lastmod on
index objectClass eq
index uid eq
################### slapd.conf ###################
ldapsearch just refuses to find objectClass=posixGroup
,------------------------------------------------------------,
| Weston J. Bustraan | E-Mail: weston@itdonline.net |
| System Administrator | Phone: (616)249-3630 |
| Infinity Tel-Data Inc. | Fax: (616)249-3067 |
| 4723 S. Division Ave. | WWW: www.itdonline.net |
| Wyoming, MI 49548 | PGP: finger weston@itdonline.net |
`------------------------------------------------------------`
Error #152 - Windows not found: (C)heer (P)arty (D)ance.