CentOS 7
Sponsored Link

Basic Auth + LDAP
Limit accesses on specific web pages and use LDAP users for authentication with SSL connection.
[3] For example, set Basic Auth under the [/var/www/html/auth-ldap] directory.
[[email protected] ~]#
yum -y install mod_ldap
[[email protected] ~]#
vi /etc/httpd/conf.d/auth_ldap.conf
# add follows to the end

<Directory /var/www/html/auth-ldap>
    AuthName "LDAP Authentication"
    AuthType Basic
    AuthBasicProvider ldap
    AuthLDAPURL ldap://dlp.srv.world/dc=srv,dc=world?uid?sub?(objectClass=*)
    Require ldap-filter objectClass=posixAccount

# create a test page

[[email protected] ~]#
mkdir /var/www/html/auth-ldap

[[email protected] ~]#
vi /var/www/html/auth-ldap/index.html
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">
Test Page for LDAP Auth

[[email protected] ~]#
systemctl restart httpd
[4] Access to the test page with a Web browser on Client and authenticate with a user which is on LDAP.
[5] Just accessed.