https://bugs.openldap.org/show_bug.cgi?id=9122
--- Comment #3 from Howard Chu hyc@openldap.org --- (In reply to Ondřej Kuzník from comment #2)
I thought we might let the backend know if it's in dryrun mode, but a large part of slapadd is gated on !dryrun and that would need sweeping changes.
One of those options would be to change bi_tool_entry_open() signature and pass dryrun in, letting the backend decide whether this should be preserved.
Probably easier to just add a new DRYRUN flag to slapMode.
bconfig could then set cfb->cb_use_ldif = 0 and thus any changes would be transient while still loading all modules etc.