pub async fn run_collection(
ldap: &mut Ldap,
options: &Options,
) -> Result<String, Box<dyn Error>>Expand description
Run the complete RustHound-CE workflow over an already-authenticated LDAP
session (get one from transport::ldap::ldap_auth, or bring your own):
collect -> parse -> modules -> JSON/zip. Returns the output path.
Storage follows options: resume parses an existing disk cache without
collecting; cache streams to .rusthound-cache/<domain>/ldap.bin;
otherwise entries are kept in memory. Modules run per collection_method.
Never calls process::exit; never unbinds/drops the session.