Howto Setup Active Directory Authentication With Apache WebServer

Recently I was doing some consultancy work and they need to authenticate users using Active Directory service. However you need to compile Apache web server to add LDAP bindings. Apache LDAP allows an LDAP directory to be used to store the database for HTTP Basic authentication.

Next load LDAP module, configure directory security and you are done.

You don’t have to install and use samba package 🙂

There is a good howto that explains configuration parameters and other stuff.

How to Configure Apache Authentication with Active Directory

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 7 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
7 comments… add one
  • jay Jul 15, 2009 @ 22:42

    “There is a good howto that explains configuration parameters and other stuff. ”


    Can you tell me which howto you looked at and where it is? Thanks

  • kanat Sep 23, 2009 @ 5:31

    I have a web server running on FreeBSD7.2 using apache2. I want authenticate users via AD using ldap module. After some googling I have found some recommended instructions. But it couldn’t help me. I need a help to get detailed explanations of my problem.

  • Abhijit Apr 30, 2010 @ 14:53

    Can you please share more details on “How to steps”
    Any help will be appreciated.

    I have installed Apache web server on Solaris10 OS –
    Server version: Apache/2.2.14 (Unix)
    Server built: Feb 5 2010 16:36:14

    I need to configure Apache web server with Windows Active Directory LDAP can you please give me head start in this regards.

  • Randy Sep 16, 2010 @ 13:37

    Did any of you ever solve this?
    If so, where did you get the instructions?

  • Surendra Kumar anne Jun 16, 2011 @ 16:18

    Here is the link to get the step by step procedure on how to implement Apache-AD integration.

  • Sumit Mar 12, 2013 @ 10:48

    Is there a way to hide the password from config file? May be use the credentials entered by authenticating user? Just a thought, may be other possible ways.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum