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

Re: howto view slapd configuration : ldapsearch VS slapcat



Sébastien Bernard wrote:
Le 19/10/2011 15:51, Olivier Guillard a écrit :
Hi Seb,

Isn't there any way to pass filters to slapcat see spécific
part of the configuration ?

Don't ask questions that are already answered in the manpages. RTFM.

See slapcat(8) option -a.

ldapsearch -x -LLL -D uid=admin,cn=config -W -s sub -b "cn=config"
"(olcDatabase=*)" olcAccess
[snip ...]

Unfortunately not. Slapcat is meant to dump the whole context.
You can eventualy  use a small perl script to sort the relevant nodes
afterwards.

Else ldapsearch with '*' '+' should give you all the attributes included
in the database.

ldapsearch -x -LLL -D uid=admin,cn=config -W -s sub -b "cn=config" "(olcDatabase=*)" '*' '+'

The '+' adds the operational attributes.

S. Bernard





--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/