Appendix C. Useful LDAP Commands

In the course of this book we looked at all the command line tools that come in the OpenLDAP distribution. But the scope of this book requires the discussion of each of these tools briefly. There are some advanced uses of these tools that can come in handy at times. In this appendix I have provided examples of such uses.

In this appendix, we will cover

  • Getting information about the directory using ldapsearch
  • Creating backups of the directory using two different strategies
  • Rebuilding a BDB/HDB database

Getting Information about the Directory

Many LDAP servers provide information about their configuration and functional abilities. This information is stored in such a way that LDAP clients can directly access it using a ...

Get Mastering OpenLDAP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.