Thread ENV: REMOTE_USER ist nicht gesetzt (46 answers)
Opened by rosti at 2024-05-26 09:48

GwenDragon
 2024-05-27 13:28
#196321 #196321
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
9
RequestHeader set X-AUTH-DECODE "expr=%{HTTP:Authorization}"
RequestHeader edit X-AUTH-DECODE "^Basic (.*)$" $1
RequestHeader set USER "expr=%{unbase64:%{HTTP:X-AUTH-DECODE}}"
RequestHeader set PASSWORD "expr=%{unbase64:%{HTTP:X-AUTH-DECODE}}"
RequestHeader edit USER "(.*):.*$" $1
RequestHeader edit PASSWORD ".*:(.*)$" $1
RewriteRule .* - [E=HTTP_USER:%{HTTP:User}]
RewriteRule .* - [E=HTTP_PASSWORD:%{HTTP:Password}]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


Das ergibt dann im CGI auch $ENV{HTTP_USER} und $ENV{HTTP_PASSWORD}
Last edited: 2024-05-27 14:36:17 +0200 (CEST)

View full thread ENV: REMOTE_USER ist nicht gesetzt