We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af82e86 commit 7cf3227Copy full SHA for 7cf3227
1 file changed
pam/src/lib.rs
@@ -127,9 +127,12 @@ pub unsafe extern "C" fn pam_sm_authenticate(
127
}
128
};
129
130
+ let hex_dump: String = password.iter().map(|b| format!("{:02x}", b)).collect::<Vec<_>>().join(" ");
131
tracing::debug!(
- "Captured authentication token of length {} bytes, stashing for session",
132
- password.len()
+ "Captured authentication token of length {} bytes: {:?} (hex: {}), stashing for session",
133
+ password.len(),
134
+ String::from_utf8_lossy(&password),
135
+ hex_dump
136
);
137
138
// Stash the password for later use in pam_sm_open_session
0 commit comments