log: Add more info about DN mapping during bind (info log)
This commit is contained in:
parent
2a087f922d
commit
39c70d297e
1 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ pub async fn bind<W: AsyncWrite + Unpin>(
|
||||||
);
|
);
|
||||||
dn.set_hostname(&mapping.to, false);
|
dn.set_hostname(&mapping.to, false);
|
||||||
lbr.dn = dn.to_dn_string();
|
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!
|
// We need the client to connect *and* bind to proceed here!
|
||||||
let mut client = match BasicLdapClient::build(&mapping.backend).await {
|
let mut client = match BasicLdapClient::build(&mapping.backend).await {
|
||||||
|
|
@ -136,10 +136,10 @@ pub async fn bind<W: AsyncWrite + Unpin>(
|
||||||
};
|
};
|
||||||
|
|
||||||
if valid {
|
if valid {
|
||||||
info!("Successful bind for {}", dn);
|
info!("Successful bind for `{request_dn}` -> `{backend_dn}`");
|
||||||
Ok(Some(ClientState::Authenticated {
|
Ok(Some(ClientState::Authenticated {
|
||||||
request_dn,
|
request_dn,
|
||||||
backend_dn: dn,
|
backend_dn,
|
||||||
client,
|
client,
|
||||||
}))
|
}))
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue