Authenticate Apache 2.2 against Zimbra LDAP

Add something like this to httpd.conf.

LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule ldap_module libexec/apache22/mod_ldap.so

  AuthName "HUDORA Internal"
  AuthType Basic
  AuthBasicProvider ldap
  AuthLDAPURL ldap://zimbra.example.com/?mail
  Require valid-user

This should alow you to login as yourmail@zimbra.example.com with your zimbra password.

Enjoy!

  1. Hi!
    I can’t this get to work. Zimbra’s LDAP is accessible via Thunderbird’s address-book and such, but requests to the protected apache resource are denied with a 401 (access denied).
    errorlog and accesslog don’t provide anything useful besides that a 401 is generated.

    The configuration is done in a block inside a .

    Any ideas?

  • Apache auth is notoriously painful to debug. Try to use tcpdump to trace what is happening between apache and zimbra.

  • Leave a Reply