(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Configuration : (Category) SLAPD Configuration : (Answer) How do I turn on slapd(8) logging?
Direct log on file (mostly useful for debugging purposes):

start slapd(8) with the -d option:

    slapd -d 256 -d 128
will send logs on stderr; redirect to a file as needed.

Log on syslog: two ways

  1. in slapd.conf(5), set loglevel to the desired subsystem (or subsystems):
        loglevel         256 128
    
  2. start slapd(8) with the -s option:
        slapd -s 256 -s 128
    

From OpenLDAP 2.3 on,-d, loglevel and -s accept friendly names; for example, the above statements can become

    slapd -d stats,acl
    loglevel         stats acl
    slapd -s stats,acl
respectively.
[Append to This Answer]
Previous: (Category) How can I ... setup something unusual?
Next: (Answer) Can SLAPD hold multiple naming contexts?
This document is: http://www.openldap.org/faq/index.cgi?file=907
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org