Jump to content

Extension talk:SSLClientAuth

Add topic
From mediawiki.org

Following change will fix the issue with autocreating of nonexisting user when the client's certificate CN contains username in lowercase and prevents getting the response 'Invalid username'

--- SSLClientAuthHooks.ori      2015-11-15 22:09:43.000000000 +0100
+++ SSLClientAuthHooks.php      2015-11-16 01:38:08.202730214 +0100
@@ -27,6 +27,7 @@
         if (!isset($parsed['CN'])) {
             return true;
         }
+        $parsed['CN'] = ucfirst($parsed['CN']);

         $userName = $parsed['CN'];

Start a discussion about Extension:SSLClientAuth

Start a discussion