Show openldap config

Aus Xinux Wiki
Version vom 4. Dezember 2014, 16:33 Uhr von Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=There are two main methods that I know of and for both you have to be logged in as root. First:= *slapcat -b cn=config =Slapd does not even have to be running. T…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

There are two main methods that I know of and for both you have to be logged in as root. First:

  • slapcat -b cn=config

Slapd does not even have to be running. This command will dump the entire configuration, but you can also filter its output:

  • slapcat -b cn=config -a cn=config

This will show only the root object. However:

  • slapcat -b cn=config -a "(|(cn=config)(olcDatabase={1}hdb))"

This will show both the root object and the hdb database definition.

=Second method:

  • ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config

Again, you can also filter the output:

  • ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config cn=config
  • ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config "(|(cn=config)(olcDatabase={1}hdb))"