Authenticate Apache 2.2 against Zimbra LDAP

Add something like this to httpd.conf.

LoadModule authz_host_module libexec/apache22/
LoadModule authz_user_module libexec/apache22/
LoadModule authnz_ldap_module libexec/apache22/
LoadModule authz_default_module libexec/apache22/
LoadModule auth_basic_module libexec/apache22/
LoadModule auth_digest_module libexec/apache22/
LoadModule ldap_module libexec/apache22/

  AuthName "HUDORA Internal"
  AuthType Basic
  AuthBasicProvider ldap
  AuthLDAPURL ldap://
  Require valid-user

This should alow you to login as with your zimbra password.


3 comments on “Authenticate Apache 2.2 against Zimbra LDAP

  1. Philipp
    2008-12-25 at 11:52 #

    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?

  2. mdornseif
    2008-12-27 at 17:55 #

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

  3. andi
    2011-08-12 at 23:55 #

    can i get full source code??
    i wanna develop it :)

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

Du kommentierst mit Deinem Abmelden / Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s