[authentication] Passing Http Basic Auth Credentials #319

Open
opened 2026-10-04 23:51:59 +02:00 by adam · 0 comments
Owner

Reported by knueppel on 25 Mar 2015 20:03

Version: 2.7.4

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.

Piwigo Bugtracker #3214

**Reported by knueppel on 25 Mar 2015 20:03** **Version:** 2.7.4 Similar to #0001501: Using nginx with nginx-auth-ldap module (https://github.com/kvspb/nginx-auth-ldap), piwigo doesn&#039;t log in the user, because http auth credentials won&#039;t be passed correctly. Changing Line 50 in user.inc.php from foreach (array(&#039;REMOTE_USER&#039;, &#039;REDIRECT_REMOTE_USER&#039;) as $server_key) to foreach (array(&#039;REMOTE_USER&#039;, &#039;REDIRECT_REMOTE_USER&#039;, &#039;PHP_AUTH_USER&#039;) as $server_key) perfectly solves this issue. [Piwigo Bugtracker #3214](http://piwigo.org/bugs/view.php?id=3214) <!-- github-sync-id:97252320 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#319