Wraps an LDAP handler so that its result is sent only once the writes it
made have committed, and an error made by refusal is sent instead when
that commit fails.
Parameters
operation: any
the operation's name (add, search, …)
handler: any
the ldapjs handler
refusal: any
builds the error sent in place of a result whose commit
failed, from a message
Wraps an LDAP handler so that its result is sent only once the writes it made have committed, and an error made by
refusalis sent instead when that commit fails.