Compdigitec Labs

« | Home | »

Apache Active Directory authentication

By admin | September 15, 2013

Add this to /etc/ldap/ldap.conf:

REFERRALS off

Then add this to a block:

 AuthLDAPBindDN "ApacheUser@example.com"
 AuthLDAPBindPassword "the password used for apache lookups"
 AuthLDAPURL "ldap://192.168.88.2:389/dc=example,dc=com?sAMAccountName?sub?(objectClass=user)" NONE

 AuthzLDAPAuthoritative off
 AuthBasicProvider ldap
 AuthType Basic
 AuthName "Please enter your computer logon (Active Directory) to enter."
 # Important, otherwise you get "(9)Bad file descriptor: Could not open password file: (null)"
 AuthUserFile /dev/null
 Require ldap-group cn=Users
 Require valid-user

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 4 Comments »

4 Responses to “Apache Active Directory authentication”

  1. iux ดีไหม Says:
    July 1st, 2026 at 08:08

    … [Trackback]

    […] Here you will find 78429 additional Info on that Topic: compdigitec.com/labs/2013/09/15/apache-active-directory-authentication/ […]

  2. Cellular Therapy Bangkok Says:
    July 3rd, 2026 at 19:22

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2013/09/15/apache-active-directory-authentication/ […]

  3. https://bonuscode-skycrown.com Says:
    July 16th, 2026 at 06:18

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2013/09/15/apache-active-directory-authentication/ […]

  4. จดทะเบียนบริษัท Says:
    July 18th, 2026 at 00:44

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2013/09/15/apache-active-directory-authentication/ […]

Comments