authn_core_module: apache 2.4 : Invalid command 'AuthLDAPBindDN'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello All,

I have apache 2.2 working fine with multiple ldap aliases. Recently i installed apache 2.4 and copied the ldap configs and followed the below link.

http://httpd.apache.org/docs/2.4/mod/mod_authn_core.html

But when I start apache, this is what I am getting as an error.

AH00526: Syntax error on line 484 of /home/apache2/conf/httpd.conf:
Invalid command 'AuthLDAPBindDN', perhaps misspelled or defined by a module not included in the server configuration

I am of course loading the module.

LoadModule authn_core_module modules/mod_authn_core.so

Any help to fix this would be much appreciated. Below is the config.

=============================

<AuthnProviderAlias ldap ldap-alias1>
AuthLDAPBindDN "myuser@xxxxxxxxxxxxxxxxxxxxxxx"
AuthLDAPBindPassword "asdfgh123"
AuthLDAPURL "ldap://global.ad.mycompany.com:389/ou=NA,ou=PROD,dc=global,dc=ad,dc=mycompany,dc=com?sAMAccountName?sub?(objectClass=*)"
</AuthnProviderAlias>

<AuthnProviderAlias ldap ldap-other-alias>
AuthLDAPBindDN "myuser@xxxxxxxxxxxxxxxxxxxxxxx"
AuthLDAPBindPassword "asdfgh123"
AuthLDAPURL "ldap://global.ad.mycompany.com:389/ou=INTL,ou=PROD,dc=global,dc=ad,dc=mycompany,dc=com?sAMAccountName?sub?(objectClass=*)"
</AuthnProviderAlias>

<AuthnProviderAlias ldap ldap-another-alias>
AuthLDAPBindDN "myuser@xxxxxxxxxxxxxxxxxxxxxxx"
AuthLDAPBindPassword "asdfgh123"
AuthLDAPURL "ldap://global.ad.mycompany.com:389/ou=VLTY,ou=NA,ou=PROD,dc=global,dc=ad,dc=mycompany,dc=com?sAMAccountName?sub?(objectClass=*)"
</AuthnProviderAlias>

Alias "/secure" "/home/apache2/htdocs"
<Directory /home/apache2>
#Order deny,allow
#Allow from all

AuthBasicProvider ldap-other-alias ldap-another-alias ldap-alias1

AuthType Basic
AuthName Please_login_with_your_xxxxxx_as_username__and_windows_password_as_the_password
Require valid-user
</Directory>
====================================






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux