Why ldapsearch return nothing but slapcat does?
<p>I'm trying to understand how ldap work. I tried to list the olcAccess of ldap with this  command </p>

<pre><code>$ ldapsearch -x -b 'cn=config' "objectclass=*" -s sub
# extended LDIF

#
# LDAPv3
# base &lt;cn=config&gt; with scope subtree
# filter: objectclass=*
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1
</code></pre>

<p>I also tried with the admin user (<code>ldapsearch -x -W -D 'cn=admin,dc=example,dc=com' -s sub -b 'cn=config' 'objectclass=*'</code>). Same output as above.</p>

<p>But with <code>slapcat -b 'cn=config'</code>, I get everything.</p>

<p>Why ? </p>