MantisBT - Piwigo
View Issue Details
0003214Piwigoauthenticationpublic2015.03.25 21:032015.03.25 21:03
knueppel 
 
normalminoralways
newopen 
Debian7
2.7.4 
 
any
5.4.39-0+deb7u1
nginx 1.6.2 with nginx-auth-ldap
0003214: Passing Http Basic Auth Credentials
Similar to 0001501: Using nginx with nginx-auth-ldap module (https://github.com/kvspb/nginx-auth-ldap [^]), piwigo doesn't log in the user, because http auth credentials won't be passed correctly.

Changing Line 50 in user.inc.php from

foreach (array('REMOTE_USER', 'REDIRECT_REMOTE_USER') as $server_key)

to

foreach (array('REMOTE_USER', 'REDIRECT_REMOTE_USER', 'PHP_AUTH_USER') as $server_key)

perfectly solves this issue.
No tags attached.
Issue History
2015.03.25 21:03knueppelNew Issue

There are no notes attached to this issue.