0

I am trying to set up LDAPS with apache, so that users logging in to my site will be authenticated against my AD, and that this auth traffic is itself encrypted.

Apache is version 2.2.15 running on Red Hat 6.2

AD is on Windows 2008 R2

This all works with plain LDAP, it's just when I try to get it to work with LDAPS it fails.

Running a wireshark trace, I can see the TCP handshake, ([SYN],[SYN, ACK],[ACK]), then there is an 8 second delay where I would expect the ClientHello to come in, but it doesn't happen.

I just get a [FIN, ACK] from the apache side as the TCP connection is torn down.

So, how do I start troubleshooting this?

In my apache conf, I have added

LDAPTrustedGlobalCert CA_BASE64 /path/to/my/orgs/root/cert LDAPVerifyServerCert On|Off #tried both LDAPTrustedMode SSL|TLS #tried both

in my ldap url, I have changed the ldap:// to ldaps:// and changed the port I am connecting to

Have tried port 636 and 3269 (global catalogue SSL)

Error log is showing [LDAP: ldap_simple_bind_s() failed][Can't contact LDAP server]

No firewall is up (iptables, windows firewall or intermediate hw fw), so there should be no traffic restrictions.

Any ideas?

gtmcclinton
  • 151
  • 1
  • 7

2 Answers2

0

IF you are using 'ldaps://ip address.......' in your ldap url try 'ldaps://full hostname.......'

Sean1e
  • 31
  • 2
  • No, I wasn't using IP address, haven't even tried it, it's been FQDN all the way. – gtmcclinton Jul 20 '15 at 13:57
  • I am seeing this in the apache documentation. "Support for LDAP over SSL (requires the Netscape SDK) or TLS (requires the OpenLDAP 2.x SDK or Novell LDAP SDK)." Closest rpm I've found is ldapjdk, rather than ldapsdk. I've installed it, but still no worky. Would I need to do any post installation configuration? – gtmcclinton Jul 20 '15 at 13:58
0

I found that the file permissions were too restrictive in the cert file pointed to by "LDAPTrustedGlobalCert"

However, with "LDAPVerifyServerCert Off", I thought reading of that root cert would be bypassed, and I wouldn't need to worry about permissions?

No matter, it's fixed now

gtmcclinton
  • 151
  • 1
  • 7