Pulled LDAP configuration from Frédéric Mangano on commit 296666fad24ed7d9406327594e7664d1bbd2cdff