The popup that is being displayed is from Apache, requesting the data to authenticate with AD, and then configuring the REMOTE_USER variable. Once I enter the data, the process occurs correctly, the variable is populated (with userPrincipalName) and SSO is performed in WordPress. However, when you close the browser and reopen it, the Apache popup is requested again.
All I did was perform the Apache configuration as below:
AuthType Basic
AuthName "Top Secret"
AuthBasicProvider ldap
AuthLDAPURL "ldap://my.ldap.serv:port/DC=mysite,DC=com?userPrincipalName?sub?(objectClass=user)" NONE
LDAPReferrals Off
AuthLDAPBindDN "myBindDN"
AuthLDAPBindPassword "myBindPassword"
Require valid-user
AuthLDAPRemoteUserAttribute userPrincipalName
I’m not using Kerberos.