Requirement:
1: "REQUIRE HTTPS ON CREDENTIAL PAGES" should be enabled
2: Forwarded https (webservers not terminating https).

The notice I see on https (forwarded).

You are accessing SITE X using an unencrypted connection. For your security, SITE X only supports account logins using a secure protocol such as HTTPS. You can switch to HTTPS by trying to view this page again after changing the URL in your browser 's location bar to begin with "https" instead of "http". Please contact mail@mail.mail for help if this error continues.

In ldap.module line 747
@$_SERVER['HTTPS'] != 'on'
I think should be replaced by something that also tests Forwarded proto?
Something like
@$_SERVER['HTTPS'] != 'on' || $_SERVER[$settings['reverse_proxy_proto_header']] == 'https'?
Only I'm not sure if the "$settings" there is the way to go.
If someone could advise me the right way I will test this and make patch.
What I see in my _SERVER variable:

_SERVER["HTTP_X_FORWARDED_PROTO"] : "https"
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wouters_f created an issue. See original summary.

wouters_f’s picture

Temporary workaround: Disable "REQUIRE HTTPS ON CREDENTIAL PAGES".

wouters_f’s picture

Assigned: wouters_f » Unassigned
wouters_f’s picture

  • grahl committed 4cf8059 on 8.x-3.x authored by wouters_f
    Issue #2841404 by wouters_f: ldap does not detect HTTPS when forwarded
    
grahl’s picture

Status: Needs review » Fixed

Great fix, thanks! Just note that Request should be called with the global namespace \Drupal.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.