[Samba] Working configuration for Apache 2.4 auth vs Samba 4 AD

Julien Deloubes julien.deloubes at gmail.com
Wed Oct 7 22:25:18 UTC 2015


Hello,
had some problem to authenticate users with AD with my Apache 2.4 website
following the wiki page:
https://wiki.samba.org/index.php/Authenticating_Apache_against_Active_Directory#Basic_LDAP_authentication

Here is my working configuration (thanks to
http://httpd.apache.org/docs/2.4/en/mod/mod_authnz_ldap.html)

First you need authnz_ldap module for Apache.

<Location />
AuthName "AD authentication"
AuthBasicProvider ldap
AuthType Basic
AuthLDAPGroupAttribute member
AuthLDAPGroupAttributeIsDN On
AuthLDAPURL "ldap://addc1:3268/?sAMAccountName?sub
AuthLDAPBindDN apache-connect at contoso.com
AuthLDAPBindPassword password
Require ldap-group CN=Sysadmins_GRP,OU=groups,OU=company,DC=contoso,DC=com
</Location>

Hope this will help someone and could be a good idea to update the wiki
page.


More information about the samba mailing list