Skip to main content

Apache – Using openLDAP to authenticate web users

By October 16, 2013September 12th, 2022No Comments

One of the great advantages of openLDAP is that so many services can integrate with it. In this video we authenticate Apache http users to the openLDAP directory hosted SUSE 11.

The specific authentication options in the Directory section httpd,conf are

AuthType Basic
AuthName "Test Login"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://serverip/ou=people,dc=domain,dc=com?uid?sub
require valid-user

In addition to the authz_default_module, authz_basic_module the httpd server will also need the following modules loaded to support authentication to LDAP

  • authnz_ldap
  • ldap