NethServer Version: v7
Module: AD
Hello again
Is there a way to have a Web Server (apache 2.4) authenticate users against Nethserver AD?
I have tried many ways and am failing … badly.
created a test web server and test page with authentication and have tried:
<VirtualHost *:80>
ServerName www.test.com
ServerAlias test.com
DocumentRoot /var/www/test.com/html
ErrorLog /var/www/test.com/log/error.log
CustomLog /var/www/test.com/log/request.log combined
<Directory "/var/www/test.com/html">
AuthType Basic
AuthName "Enter Your Login username and password"
#AuthUserFile /etc/httpd/.htpasswd
AuthBasicProvider ldap
AuthLDAPURL "ldap://<IP>:389/dc=ad,dc=domain,dc=com?sAMAccountName?sub?(objectClass=*)"
Require valid-user
</Directory>
and
ServerName www.test.com
ServerAlias test.com
DocumentRoot /var/www/test.com/html
ErrorLog /var/www/test.com/log/error.log
CustomLog /var/www/test.com/log/request.log combined
<Directory "/var/www/test.com/html">
AuthType Basic
AuthName "Enter Your Login username and password"
#AuthUserFile /etc/httpd/.htpasswd
AuthBasicProvider ldap
AuthLDAPURL "ldap://<IP>:389/dc=ad,dc=domain,dc=com?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN ldapservice@AD.DOMAIN.COM
AuthLDAPBindPassword Blahblahblah
Require valid-user
</Directory>
i am at a loss what i am doing wrong. Any ideas?
Thank you for your ideas