Support windowsAuthentication on PHP/IIS

Created on 12 September 2018, almost 7 years ago
Updated 21 January 2025, 6 months ago

I have been working with PHP installed in a Windows Server and IIS, I was trying to make the ldap_sso work, according to this page the variable that contains the logged in user information is called LOGON_USER

In the IIS instance I enabled the windowsAuthentication feature, I also disabled the anonymousAuthentication.

I created two patches to allow ldap and ldap_sso modules to use the windowsAuthentication.

With these changes IIS will provide the authenticated user identity information to the PHP page through server variables.

Here are the two patches:

LDAP module patch:
LDAP_windowsAuthentication_not_able_to_log_in_PHP_IIS-2999178-2.patch

LDAP_SSO module patch:
LDAP_SSO_windowsAuthentication_not_able_to_log_in_PHP_IIS-2999178-2.patch

I created two patches since I modified both ldap and ldap_sso.

I hope this helps someone who has the same problem.

✨ Feature request
Status

Closed: won't fix

Version

4.0

Component

Code

Created by

πŸ‡²πŸ‡½Mexico luisnicg

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024