Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is related to the question I asked last week. The issue is that suddenly, my apache server was unable to connect to my LDAP (Active Directory) server for sites that require authentication. After much digging, I discovered that the SSL certificate for the LDAP/AD server expired when this happened. I have been trying to create a new SSL cert for the LDAP/AD server and installing that on the apache server and have been having no luck. At this point, I need someone who can go through the process for me step-by-step as it would appear I am missing something fundamental in making this all work.

At this point, I can't even get an LDAP connection from apache (using mod_ldap) even without SSL.

I have been using openldap both on the Windows server (LDAP/AD host) and the linux apache server, creating certs on both sides to no avail. I can't seem to get what I need from docs I've found online and just need a simple howto to make this all work. Anything that will help me make sense of this mess would be greatly appreciated.

Thanks. Seth

share|improve this question

Well the fact that you cannot even communicate with the LDAP server without SSL could mean something else is wrong, and judging by the post you made before it sounds like this was not the first time. For the SSL bit however all you need to do is copy your SSL certificate authority .crt file and place it into the apache server here: /etc/ssl/cert.pem

In your virtual-host file on the apache server in question you want to add a block like this:

Update your Directory block to look like:

    <Directory "/web/wiki/">
          Order allow,deny
          Allow from all

and then verify your Location block looks like:

    <Location />
            DAV off
            AuthType basic
            AuthName "Foobar"
            AuthBasicProvider ldap
            AuthLDAPURL ldaps://,dc=bar?sAMAccountName?sub TLS
            AuthzLDAPAuthoritative on
            AuthLDAPBindDN cn=blahblahblah
            AuthLDAPBindPassword password
            Require valid-user

That's how mine is configured.

Hope this helps

share|improve this answer
For the SSL cert authority file, is that the one from the LDAP server or the apache server? This is part of what I'm confused about. – SethG Oct 8 '09 at 19:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.