On Fri, Apr 25, 2025 at 07:24:56AM +0000, Windl, Ulrich wrote: > Hi! > > After reading the manual of slapcat (for 2.5) it recommends using > option -H and an URI instead of other obsolete options. > So I tried it, but all I get is a usage message, even with "-v" and "-d9". > Like this: > # slapcat -d9 -H 'ldap:///?entryCSN?sub?(objectClass=*)' > usage: slapcat [-v] [-d debuglevel] [-f configfile] [-F configdir] [-o > <name>[=<value>]] [-c] > [-g] [-n databasenumber | -b suffix] [-l ldiffile] [-a filter] [-s > subtree] [-H url] > However when I use > # slapcat -H 'ldap://?entryCSN?dc=...,dc=de?sub?(objectClass=*)'
In the manpage under the -H option: "use dn, scope and filter from URI to only handle matching entries." You are adding other parts to the URI (an attribute list) that slapcat is not willing to handle. Regards, -- Ondřej Kuzník Senior Software Engineer Symas Corporation http://www.symas.com Packaged, certified, and supported LDAP solutions powered by OpenLDAP
