RewriteCond %{HTTP:Authorization} ^Basic.*
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]