I am working on getting a web app set up behind LDAP. We are running Apache 2.4.6 on CentOS 7.6 (Core). Kerberos is configured and working on the server to provide user access via SSH and SCP.
In my /var/www/html directly, I have three sites: Prod, Test, LDAPTest. Prod and Test are no set up with any LDAP settings and are open to the whole network for access.
I have set up a self signed cert for SSL which appears to be working as expected for all three sites. Additionally, I have updated the SELinux config for allowing Apache to connect through LDAP
though I am struggling to remember what that command was. (httpd_can_connect_ldap = 1)
Running httpd -M shows that, bot, ssl_module and ldap_module are loaded (shared).
In my httpd.conf file, I have the following entry:
<Directory "/var/www/html/LDAPTest"> AuthType Basic AuthName "LDAP TEST - Login" AuthBasicProvider ldap #AuthzLDAPAuthoritative on AuthLDAPURL ldaps://DOMAIN.org:389 #AuthLDAPURL "ldaps://DOMAIN.org:389/DC=DOMAIN,DC=org?sAMAccountName?sub?(objectClass=*)" AuthLDAPBindDN "CN=svc_LDAPUSER@DOMAIN.org,OU=Service Accounts,DC=DOMAIN,DC=org" AuthLDAPBindPassword LDAPUSERPASSWORD require valid-user </Directory>
No matter what I seem to do, as soon as the directory gets set up with LDAP settings, I receive a pop up requesting authentication information (good...) and the result is an error 500 page.
Though I have httpd.conf set to log level of debug, I see no real information in Apache's error_log file.
What/Where do I need to look in order to find out what the real cause of the issue may be?
Edit: Added SELinux switch | added httpd -M information