sasl external: request tls client cert, plumb sha256 certfp through to user, relay to services; advertise sasl=PLAIN,EXTERNAL on tls

This commit is contained in:
Jean Chevronnet 2026-08-08 19:36:48 +00:00
parent 8d31feb4e7
commit 02528df5e9
7 changed files with 75 additions and 9 deletions

View file

@ -182,6 +182,7 @@ impl Server {
out: OutSink,
sock: Option<TcpStream>,
secure: bool,
certfp: Option<String>,
) {
let uuid = self.next_uuid();
self.uuid_local.insert(uuid.clone(), uid);
@ -198,6 +199,7 @@ impl Server {
cloak: String::new(),
vhost: None,
secure,
certfp,
account: None,
signon: now(),
addr,
@ -666,6 +668,7 @@ mod tests {
cloak: String::new(),
vhost: None,
secure: false,
certfp: None,
account: None,
signon: 0,
addr: "127.0.0.1:1".parse().unwrap(),