Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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
    </Directory>

and then verify your Location block looks like:

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

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

 
discard

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.