Show A1-MD5 key in bad credentials warning.
This commit is contained in:
parent
3b133961f5
commit
0a2b21962b
@ -181,7 +181,8 @@ impl<S: CredentialStore + Clone> AuthManager<S> {
|
|||||||
|
|
||||||
let key = self.derive_long_term_key(&username, &password);
|
let key = self.derive_long_term_key(&username, &password);
|
||||||
if !validate_message_integrity(msg, &key) {
|
if !validate_message_integrity(msg, &key) {
|
||||||
warn!("auth reject: bad credentials username={} realm={} peer={}", username, realm, peer);
|
let key_hex = hex::encode(&key);
|
||||||
|
warn!("auth reject: bad credentials username={} realm={} peer={} a1_md5={} (debug)", username, realm, peer, key_hex);
|
||||||
return AuthStatus::Reject {
|
return AuthStatus::Reject {
|
||||||
code: 401,
|
code: 401,
|
||||||
reason: "Bad Credentials",
|
reason: "Bad Credentials",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user