lldap/src/main.rs

22 lines
446 B
Rust
Raw Normal View History

2021-03-02 19:51:33 +00:00
use anyhow::Result;
use log::*;
2021-03-02 19:13:58 +00:00
mod infra;
2021-03-02 19:51:33 +00:00
fn main() -> Result<()> {
2021-03-02 19:13:58 +00:00
let cli_opts = infra::cli::init();
2021-03-02 19:51:33 +00:00
let config = infra::configuration::init(cli_opts.clone())?;
infra::logging::init(config.clone())?;
info!("Starting LLDAP....");
debug!("CLI: {:#?}", cli_opts);
debug!("Configuration: {:#?}", config);
2021-03-02 22:07:01 +00:00
2021-03-06 22:39:34 +00:00
// infra::tcp_server::init(config)?;
infra::ldap_server::init(config)?;
2021-03-02 22:07:01 +00:00
2021-03-02 19:51:33 +00:00
info!("End.");
Ok(())
2021-03-02 11:45:30 +00:00
}