Problem with XAMPP, ldap.conf, LDAPS, SSO, etc...
Posted: 18. March 2014 22:10
I'm trying to set up seamless single sign-on using mod_authnz_sspi.so found here: https://www.apachehaus.net/modules/mod_authnz_sspi/ . I read somewhere that mod_auth_sspi.so was incompatible with apache 2.4, so I am using the authnz module instead.
I've got it working 90% of the way, but I cannot get LDAP over SSL ("LDAPS") working. Non-encrypted LDAP works fine.
LDAPS reports that my username/password is invalid, but this is not true. I ran into this problem when setting up AD integration with LDAP on IIS, and the solution was for me to put a file at C:\OpenLDAP\sysconf\ldap.conf with the contents:
On IIS, this worked fine.
The problem seems to be that Apache does not look for the ldap.conf file at this location, and I'm not sure how to fix it. I ran process monitor while attempting to log into a test website running XAMPP with my AD credentials, and process monitor shows that httpd.exe is trying to read the file at C:\xampp\apache\%SYSCONFDIR%\ldap.conf. I created an environment variable, %SYSCONFDIR% and set it to 'conf', and put my ldap.conf file in C:\xampp\apache\conf\ldap.conf but this didn't work either.
Does anyone know how to fix this problem? How do I tell Apache the correct location of ldap.conf?
Thank you,
Casey
I've got it working 90% of the way, but I cannot get LDAP over SSL ("LDAPS") working. Non-encrypted LDAP works fine.
LDAPS reports that my username/password is invalid, but this is not true. I ran into this problem when setting up AD integration with LDAP on IIS, and the solution was for me to put a file at C:\OpenLDAP\sysconf\ldap.conf with the contents:
- Code: Select all
TLS_REQCERT never
On IIS, this worked fine.
The problem seems to be that Apache does not look for the ldap.conf file at this location, and I'm not sure how to fix it. I ran process monitor while attempting to log into a test website running XAMPP with my AD credentials, and process monitor shows that httpd.exe is trying to read the file at C:\xampp\apache\%SYSCONFDIR%\ldap.conf. I created an environment variable, %SYSCONFDIR% and set it to 'conf', and put my ldap.conf file in C:\xampp\apache\conf\ldap.conf but this didn't work either.
Does anyone know how to fix this problem? How do I tell Apache the correct location of ldap.conf?
Thank you,
Casey