ldap_server: Run ldapsrv_queue_reply() in the ldb callback, rather than waiting for...
authorAndrew Bartlett <abartlet@samba.org>
Wed, 3 Apr 2019 04:11:01 +0000 (17:11 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 May 2019 04:01:11 +0000 (04:01 +0000)
commit0559430ab6e5c48d6e853fda0d8b63f2e149015c
tree950f64e8bb67a6c7fc412945b2f0afe6b231ce61
parent8dfad9fa2cc5f9ae464a6df44c7ae0448cc4f3ab
ldap_server: Run ldapsrv_queue_reply() in the ldb callback, rather than waiting for the full result

Based on earlier work by Garming Sam.

This allows the server to stop working on a reply that will never
be sent to the client as it is too large.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/ldap_server/ldap_backend.c