Show openldap config: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
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…“) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 6: | Zeile 6: | ||
*slapcat -b cn=config -a "(|(cn=config)(olcDatabase={1}hdb))" | *slapcat -b cn=config -a "(|(cn=config)(olcDatabase={1}hdb))" | ||
=This will show both the root object and the hdb database definition.= | =This will show both the root object and the hdb database definition.= | ||
| − | ==Second method:= | + | ==Second method:== |
*ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config | *ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config | ||
==Again, you can also filter the output:== | ==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 | ||
*ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config "(|(cn=config)(olcDatabase={1}hdb))" | *ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config "(|(cn=config)(olcDatabase={1}hdb))" | ||
| + | |||
| + | Source: http://www.openldap.org/lists/openldap-technical/201101/msg00048.html | ||
Aktuelle Version vom 4. Dezember 2014, 16:34 Uhr
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))"
Source: http://www.openldap.org/lists/openldap-technical/201101/msg00048.html