Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
dovecot22.24960
0002-auth-Fail-authentication-if-certificate-us...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-auth-Fail-authentication-if-certificate-username-was.patch of Package dovecot22.24960
From 10ce84b812788a43d263aad4a60a17fcc2a1063c Mon Sep 17 00:00:00 2001 From: Aki Tuomi <aki.tuomi@open-xchange.com> Date: Mon, 21 Jan 2019 10:54:06 +0200 Subject: [PATCH 2/3] auth: Fail authentication if certificate username was unexpectedly missing --- src/auth/auth-request-handler.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/auth/auth-request-handler.c b/src/auth/auth-request-handler.c index 617dc1883..3044e94f9 100644 --- a/src/auth/auth-request-handler.c +++ b/src/auth/auth-request-handler.c @@ -560,6 +560,14 @@ bool auth_request_handler_auth_begin(struct auth_request_handler *handler, return TRUE; } + if (request->set->ssl_require_client_cert && + request->set->ssl_username_from_cert && + !request->cert_username) { + auth_request_handler_auth_fail(handler, request, + "SSL certificate didn't contain username"); + return TRUE; + } + /* Empty initial response is a "=" base64 string. Completely empty string shouldn't really be sent, but at least Exim does it, so just allow it for backwards compatibility.. */ -- 2.11.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor