Hi all,
I'm trying to use the apache windows authentication module with ldap.
In the past I've used WAMPServer and I can normally drop authnz_sspi_module into apache/modules/, add LoadModule authnz_sspi_module modules/mod_authnz_sspi.so to httpd.conf, enable LDAP module in apache and PHP then add the following to my virtual host entry:
<VirtualHost *:80>
DocumentRoot "c:/laragon/www/authtest"
ServerName authtest
ServerAlias authtest
<Directory "c:/laragon/www/authtest">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
AuthName "SACBUK"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOmitDomain On
require valid-user
</Directory>
</VirtualHost>
Then if I var_dump( $_SERVER['REMOTE_USER'] ) I can see the logged in user's username.
However, right now I'm not getting access to the $_SERVER['REMOTE_USER'] variable.
I've tried this both in: C:\laragon\etc\apache2\sites-enabled\00-default.conf and C:\laragon\etc\apache2\sites-enabled\auto.authtest.dev.conf
Should I be doing this elsewhere?
Any advice would be appreciated.
Thank you!