Apache 2.4 mod_ldap does not appear to support SNI for authentication against LDAPS servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are attempting to use mod_ldap and mod_authnz_ldap to secure our apache2 web server.  We are using the Debian 10 Apache2 package, version 2.4.38.  Our authentication provider is G-Suite, the LDAP endpoint is ldap.google.com.

Apache connects to ldap.google.com, however it does not appear to successfully negotiate a TLS connection.  As a workaround, we have set up stunnel4 to handle the TLS session and configured Apache to use stunnel.  Apache is able to successfully authenticate using plain LDAP through the TLS tunnel.  We have also successfully connected to the LDAP endpoint using ldapsearch.

This is the relevant part of our apache config:

<Location />
AuthLDAPURL "ldaps://ldap.google.com:636/ou=Users,dc=yes,dc=com?uid?sub?(objectClass=*)"
                LDAPTrustedClientCert CERT_BASE64 "/etc/apache2/ssl/Google_xxxx.crt"
                LDAPTrustedClientCert KEY_BASE64 "/etc/apache2/ssl/Google_xxxx.key"
                AuthLDAPBindDN 'someuser'
                AuthLDAPBindPassword 'apassword’
</Location>

From examining packet captures of the TLS sessions for both stunnel and Apache, the connection from Apache to the LDAP server does not seem to have support for SNI.  According to the Google documentation, SNI support is mandatory in order to use the LDAP service.[1]. Attached are screenshots showing the TLS packet captures for stunnel and Apache.  

Can anyone tell me whether SNI support is available in mod_ldap and if so how do I activate it?

Regards,
James.


1. https://support.google.com/a/answer/9190869?hl=en&ref_topic=9173976




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux