LDAP Apache 2.4.6 help

Issues related to configuring your network
Post Reply
pixa241
Posts: 1
Joined: 2015/08/18 02:02:35

LDAP Apache 2.4.6 help

Post by pixa241 » 2015/08/18 02:05:02

Hello guys, I am having issues getting AD authentication to work with a SSL website I have published. I have Apache 2.4.6 on Cent OS 7. My httpd.conf file is pretty clean. Here below is a copy of my SSL Virtual Host site file. In the .htpasswd file there is a local user which works, but AD doesn't. I am trying to get an AD Group to work. Any help is appreciated.


Listen 443 https

<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/httpd/ssl/domain.example.local.crt
SSLCertificateKeyFile /etc/httpd/ssl/domain.example.local.key

ServerAdmin user@domain.org
DocumentRoot /var/www/opendcim
ServerName domain.example.local
<Directory /var/www/opendcim>
AllowOverride All
AuthType Basic
AuthName "openDCIM"
AuthBasicProvider file ldap
AuthUserFile /var/www/.htpasswd
AuthLDAPURL "ldap://dc.example.local:389/DC=domain,DC=local?sAMAccountName?sub?(objectClass=user)"
AuthLDAPBindDN "user@domain.local"
AuthLDAPBindPassword "passwordforuserabove"
require valid-user
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: LDAP Apache 2.4.6 help

Post by aks » 2015/08/18 19:32:57

I'd suggest starting at the LDAP side of things.
Can you bind to the LDAP server using the credentials in AuthLDAPBindDN and AuthLDAPBindPassword?
Can you search the search specified in AuthLDAPURL when you are bound as the user in AuthLDAPBindDN?

Post Reply