Results 1 to 3 of 3

Thread: Change log level in openLDAP

  1. #1
    Join Date
    Sep 2006
    Maryland, USA
    Ubuntu 12.04 Precise Pangolin

    Change log level in openLDAP

    I need to change the log level in openLDAP and I'm having problems finding out how.

    I'm not using slapd.conf, but using the newer special DIT cn=config but everywhere I look, it only talks about slapd.conf

    I know I want to change the log level to stats. How would I do that?

    Impari Systems, Inc

  2. #2
    Join Date
    Apr 2009

    Question Re: Change log level in openLDAP

    Hi matthewboh,

    I'm curious if you ever figured out how to change the log level of openldap with the new cn=config configuration files. I am looking for the same information.


    From what I've found, use a program to edit your LDAP directory. Bind as: cn=admin,cn=config with your administrative password. In cn=config, there is an attribute (olcLogLevel) that can be set to "stats".
    If you've locked yourself out somehow, I suppose you could edit /etc/ldap/slapd.d/cn=config.ldif manually and then restart slapd. From what I've read, the beauty of using LDAP itself to modify it is that the changes are automatically applied without having to restart. See
    Last edited by MidSpeck; November 3rd, 2009 at 01:48 AM. Reason: Found more information

  3. #3
    Join Date
    May 2011
    Ubuntu 11.04 Natty Narwhal

    Re: Change log level in openLDAP

    you can change log level in cn=config.ldif file. Setup olcLogLevel directive to one of:

    Level Keyword Description
    -1 any enable all debugging
    0 no debugging
    1 (0x1 trace) trace function callss
    2 (0x2 packets) debug packet handling
    4 (0x4 args) heavy trace debugging
    8 (0x8 conns) connection management
    16 (0x10 BER) print out packets sent and received
    32 (0x20 filter) search filter processing
    64 (0x40 config) configuration processing
    128 (0x80 ACL) access control list processing
    256 (0x100 stats) stats log connections/operations/results
    512 (0x200 stats2) stats log entries sent
    1024 (0x400 shell) print communication with shell backends
    2048 (0x800 parse) print entry parsing debugging
    16384 (0x4000 sync) syncrepl consumer processing
    32768 (0x8000 none) only messages that get logged whatever log level is set

    olcLogLevel: trace

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts