[CentOS] Getting slapd under CentOS 6 to log connections, etc.

Sun Mar 31 16:07:45 UTC 2019
Brian Reichert <reichert at numachi.com>

On Sat, Mar 30, 2019 at 07:55:17PM -0400, Robert Heller wrote:
> I am running the stock OpenLDAP-servers on a CentOS 6 system.  Everything is 
> working just fine, but I am trying to debug connections from a Ubuntu (18.04) 
> system and want to turn on logging in slapd, but although I can get slapd to 
> create a log file, it never actually writes anything.

I used misc debug flags for when I invoke slapd:

https://www.openldap.org/doc/admin24/runningslapd.html

Note these a bitflags, that can be combined:

  256 	(0x100 stats) 	stats log connections/operations/results
  512 	(0x200 stats2) 	stats log entries sent 

> 
> I have these two lines in  /etc/openldap/slapd.d/cn=config.ldif:
> 
> olcLogFile: /var/log/slapd/log
> olcLogLevel: conns BER config ACL stats none
> 
> And although /var/log/slapd/log gets created, nothing is ever written to it.
> 
> What am I missing?
> 
> -- 
> Robert Heller             -- 978-544-6933
> Deepwoods Software        -- Custom Software Services
> http://www.deepsoft.com/  -- Linux Administration Services
> heller at deepsoft.com       -- Webhosting Services
>                                                                       
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

-- 
Brian Reichert				<reichert at numachi.com>
BSD admin/developer at large