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 | 7 Comments »

7 Responses to “Apache Active Directory authentication”

  1. FORTUNE DRAGON Says:
    March 28th, 2025 at 00:17

    … [Trackback]

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

  2. Sweet Bonanza Candylan UK Says:
    April 10th, 2025 at 13:28

    … [Trackback]

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

  3. บาคาร่า ufa11k Says:
    April 11th, 2025 at 04:32

    … [Trackback]

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

  4. Lowara Says:
    April 22nd, 2025 at 08:48

    … [Trackback]

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

  5. read article Says:
    April 23rd, 2025 at 11:25

    … [Trackback]

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

  6. 1xbet Says:
    April 25th, 2025 at 06:46

    … [Trackback]

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

  7. read more Says:
    April 25th, 2025 at 17:46

    … [Trackback]

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

Comments