ldap: Add a database open after fork to speed-up prefork binds
commit5841b164b2c57e1389b5486be4ccef8eb47f6892
authorGarming Sam <garming@catalyst.net.nz>
Wed, 8 May 2019 00:40:48 +0000 (8 12:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 04:03:37 +0000 (15 04:03 +0000)
tree5c478499b0eec688d6872c0a0ed575ad7c76bab1
parentac9333cb91dfdd80ba6b218861a5802c559cfec1
ldap: Add a database open after fork to speed-up prefork binds

Removing this (system) database open from the later auth stack results
in a 15-30% improvement in different types of binds and on different
hardware (presumably better with slower disk speeds).

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/ldap_server/ldap_server.c
source4/ldap_server/ldap_server.h