问题原文
原帖链接 · N.S.Karthik · CC BY-SA 3.0
Spec : Apache 2.24 O/s : Suse /RedHat /Windows
Windows : Apache httpd Linux : Apache DS (LDAP )
Task of Implementing Apache Httpd + LDAP + SSO (mod_session.so)
Getting error as stated below
"Invalid command 'AuthzLDAPAuthoritative', perhaps misspelled or defined by a module not included in the server configuration"
The setup was working in apache Httpd 2.22 + LDAP - SSO,hence as per docs,mod_session is suppose to work with apache 2.24 ..... :(
Does some body have any solutions
with regards karthik
社区高分解答
原帖链接 · luccino · CC BY-SA 3.0
Not sure if it is the same problem, because i switched to 2.4 not 2.2.24. Everything worked fine with httpd 2.2.22 and stoped working with 2.4.4.
I'm loading the necessary modules in my httpd.conf:
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule ldap_module modules/mod_ldap.so
My Ldap Conf looks as following:
<Location />
AuthType Basic
AuthName "LDAP Authentication"
AuthBasicProvider ldap file
AuthzLDAPAuthoritative off
AuthLDAPURL "URL"
AuthLDAPBindDN "BindDN"
AuthLDAPBindPassword "BindPassword"
Require valid-user
Order allow,deny
Allow from all
</Location>
The Error message says:
/opt/httpd/dev/bin/apachectl -f /opt/httpd/UAT/conf/httpd.conf -k start
AH00526: Syntax error on line 60 of /opt/httpd/UAT/conf/vhosts/_hobbit.conf:
Invalid command 'AuthzLDAPAuthoritative', perhaps misspelled or defined by a module not included in the server configuration
make: *** [start] Error 1
I found the same error in a Mailing List: Link to Mailinglist
It looks like he found a solution: Link to Solution
Im already compiling as he said, using my own apr/apr-util and all ldap flags (--with-ldap, --enable-ldap, ...) but i still can't get it to work.
Maybe someone can figure something out?
EDIT / SOLUTION: Okay.. Deleting "AuthzLDAPAuthoritative off" from my Virtual Host Config worked. Looks like this setting was removed with 2.4.
Settings exist in 2.2 mod_authnz_ldap Documentation and doesnt exist in 2.4 mod_authnz_ldap Documentation. (Can't post Links because of lack of reputation)
Dunno if its okay for you to just delete it from your config, but i think it should work afterwards.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
