Results 1 to 6 of 6

Thread: How to tail the LDAP logs

  1. #1
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default How to tail the LDAP logs

    I have a system up and running so searching for this was tough, most LDAP queries are problems getting things to work.

    I just need to know how to watch the LDAP in real time. I'm trying to access data from an external program and when I run a query with ldapsearch I get what I want, but my program is not working correctly.

    I'd really like to watch the LDAP server in action to see what's being passed in exactly so I can figure out why there are no matching records when I really think there should be.

    Help please.

    Peter
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    There are a lot of errors that you can ignore in the ldap logs.
    This is because we increased the logging level.

  3. #3
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default

    I'll be more clear / brief.

    Where are the LDAP logs?

    I have found the binary logs in /opt/zimbra/openldap-data but I don't know how to read them.
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  4. #4
    brian is offline Project Contributor
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    Default

    openldap logs via syslog so the details will be in /var/log/zimbra.log. By default we only log error level messages (ldap_log_level 32768). If you want to see query level logging you will need to change ldap_log_level to 256 and restart the ldap process.

    Code:
    % zmlocalconfig -e ldap_log_level=256
    % ldap stop
    % ldap start
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default

    Brian,

    Thanks so much. That is exactly what I needed. Fantastic support.

    Peter
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  6. #6
    hittudiv is offline Starter Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    5

    Default

    I configured an external program (Pgina) to work on Zimbra's ldap server.
    /etc/log/Zimbra.log contains all the logs of zimbra and mail servers and all
    is there a way i can log ldap logs in a seperate file?
    is there a slapd.conf file somewhere so that i can configure manually?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. LDAP Replication Experiences
    By technikolor in forum Administrators
    Replies: 4
    Last Post: 11-12-2008, 12:52 AM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 03:39 PM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 PM

Posting Permissions

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