Suggesting that the X-Forwarded-User is correctly sent by the Apache front.2018-02-07 17:54:18 FINE - org.jenkinsci.plugins.reverse_proxy_auth.ReverseProxySecurityRealm: USER LOGGED IN: laurent.martelli
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
AllowEncodedSlashes NoDecode
Timeout 5400
ProxyTimeout 5400
<Proxy "*">
Order deny,allow
Allow from all
Authtype Basic
Authname "Password Required"
AuthUserFile /usr/local/apache2/conf/passwd
Require valid-user
RequestHeader unset "X-Forwarded-User"
RequestHeader unset "X-Forwarded-Groups"
RequestHeader unset "Authorization"
RewriteEngine On
RequestHeader set "X-Forwarded-User" "%{RU}e"
RequestHeader set "X-Forwarded-Groups" "%{RU}e|users"
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule .* - [E=RU:%1,NS]
</Proxy>
ProxyPass "/jenkins" "http://jenkins.example.com:8282/jenkins" nocanon
ProxyPassReverse "/jenkins" "http://jenkins.example.com:8282/jenkins"
</virtualhost>