diff --git a/src/op/bind.rs b/src/op/bind.rs index e5ac34a..7e28aa8 100644 --- a/src/op/bind.rs +++ b/src/op/bind.rs @@ -90,7 +90,7 @@ pub async fn bind( ); dn.set_hostname(&mapping.to, false); lbr.dn = dn.to_dn_string(); - let dn = lbr.dn.clone(); + let backend_dn = lbr.dn.clone(); // We need the client to connect *and* bind to proceed here! let mut client = match BasicLdapClient::build(&mapping.backend).await { @@ -136,10 +136,10 @@ pub async fn bind( }; if valid { - info!("Successful bind for {}", dn); + info!("Successful bind for `{request_dn}` -> `{backend_dn}`"); Ok(Some(ClientState::Authenticated { request_dn, - backend_dn: dn, + backend_dn, client, })) } else {