For those with the same problem, you can allow the connection with these commands: setsebool -P httpd_can_network_connect 1 setsebool -P httpd_can_connect_ldap 1