Change OpenLDAP slapd Logging: Difference between revisions

No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''This wiki does not apply to ZCS 6.0.  Ignore it if you are using ZCS 6.0.x or later.'''
{{Archive}}{{Article Infobox|{{admin}}||{{ZCS 5.0}}|{{ZCS 4.5}}}}'''This wiki does not apply to ZCS 6.0.  Ignore it if you are using ZCS 6.0.x or later.'''




Zimbra platform leverages powerful OpenLDAP Directory Service as identity basis for Zimbra services.
Zimbra platform leverages powerful OpenLDAP Directory Service as identity basis for Zimbra services.
Reference:
http://www.openldap.org/


Two common things that you may want to change from default OpenLDAP slapd configuration:
Two common things that you may want to change from default OpenLDAP slapd configuration:
Line 12: Line 9:
# change slapd log level.
# change slapd log level.


__FORCETOC__


<pre>
=Changing slapd logging location=
Change slapd logging location:
Requires two changes to (a) way zimbra starts slapd,  and (b) syslog config.
Requires two changes to (a) way zimbra starts slapd,  and (b) syslog config.


1. Edit file:  /opt/zimbra/bin/ldap
'''1.''' Edit file:  /opt/zimbra/bin/ldap
2. Find following line:  "sudo /opt/zimbra/openldap-2.3.21/libexec/slapd -l LOCAL0 ..."  
 
3. Duplicate the line and comment one line (ie. add "#" to beginning -- to save original version).
'''2.''' Find following line:
4. Modify the non-commented line and remove the "-l LOCAL0" portion.  
 
  "sudo /opt/zimbra/openldap-2.3.21/libexec/slapd -l LOCAL0 ..."  
 
'''3.''' Duplicate the line and comment one line (ie. add "#" to beginning -- to save original version).
 
'''4.''' Modify the non-commented line and remove the "-l LOCAL0" portion.  


The default OpenLDAP slapd logging is to syslog facility Local4
The default OpenLDAP slapd logging is to syslog facility Local4


Now update /etc/syslogd.conf and add following line at bottom:
'''5.''' Now update /etc/syslogd.conf and add following line at bottom:
  local4.*    /var/log/ldap
  local4.*    /var/log/ldap


Restart syslogd and zimbra (zmcontrol stop/start) for your changes to take affect.
'''6.''' Restart syslogd and zimbra (zmcontrol stop/start) for your changes to take affect.
</pre>


=Changing slapd log level=
<pre>
<pre>
Change slapd log level:
zmlocalconfig -e ldap_log_level=<number>
</pre>


zmlocalconfig -e ldap_log_level=<number>
Typical example: 


Typical example: zmlocalconfig -e ldap_log_level=256
  zmlocalconfig -e ldap_log_level=256


Note:  '256' will provide insight into connections, operations, and search filters.
'''''Note:'''   '256' will provide insight into connections, operations, and search filters.''


Reference:
Reference:
http://www.openldap.org/software/man.cgi?query=slapd.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.3-Release
http://www.openldap.org/software/man.cgi?query=slapd.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.3-Release


</pre>
=Reference=
*[http://www.openldap.org/ OpenLDAP.org]
 


{{Article Footer|unknown|10/19/2006}}
{{Article Footer|unknown|10/19/2006}}
Line 48: Line 53:
[[Category:Configuration]]
[[Category:Configuration]]
[[Category:LDAP]]
[[Category:LDAP]]
[[Category:Logger]]
[[Category:Logging]]
[[Category:ZCS 5.0]]
[[Category:ZCS 4.5]]

Latest revision as of 16:36, 24 March 2015

Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 5.0 Article ZCS 5.0 ZCS 4.5 Article ZCS 4.5

This wiki does not apply to ZCS 6.0. Ignore it if you are using ZCS 6.0.x or later.


Zimbra platform leverages powerful OpenLDAP Directory Service as identity basis for Zimbra services.

Two common things that you may want to change from default OpenLDAP slapd configuration:

  1. change logging location (Zimbra default: /var/log/zimbra.log).
  2. change slapd log level.


Changing slapd logging location

Requires two changes to (a) way zimbra starts slapd, and (b) syslog config.

1. Edit file: /opt/zimbra/bin/ldap

2. Find following line:

"sudo /opt/zimbra/openldap-2.3.21/libexec/slapd -l LOCAL0 ..." 

3. Duplicate the line and comment one line (ie. add "#" to beginning -- to save original version).

4. Modify the non-commented line and remove the "-l LOCAL0" portion.

The default OpenLDAP slapd logging is to syslog facility Local4

5. Now update /etc/syslogd.conf and add following line at bottom:

local4.*     /var/log/ldap

6. Restart syslogd and zimbra (zmcontrol stop/start) for your changes to take affect.

Changing slapd log level

zmlocalconfig -e ldap_log_level=<number>

Typical example:

zmlocalconfig -e ldap_log_level=256

Note: '256' will provide insight into connections, operations, and search filters.

Reference: http://www.openldap.org/software/man.cgi?query=slapd.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.3-Release

Reference


Verified Against: unknown Date Created: 10/19/2006
Article ID: https://wiki.zimbra.com/index.php?title=Change_OpenLDAP_slapd_Logging Date Modified: 2015-03-24



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search