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

Bug#619408: apache2.2-common: mod_authnz_ldap require directives unrecognized if loaded after mod_authnz_default



Stefan Fritsch <sf@sfritsch.de> 2011-03-23 23:01:
> On Wed, 23 Mar 2011, Brian P Kroth wrote:
> >In the default configuration mod_authnz_ldap.load is symlinked from
> >mods-available to mods-enabled but that orders it (lexicographically)
> >after the symlink to load mod_authnz_default.  This causes a number of
> >ldap specific arguments to the Require definition to be unrecognized and
> >logged as follows:
> >
> >[Wed Mar 23 11:04:48 2011] [error] [client 10.10.10.10] access to
> >/auth failed, reason: unknown require directive:"ldap-user bpktest
> >bpkroth"
> 
> This message is not produced by apache2's core or any of the default
> modules. Therefore I expect that the bug is in a third party module.
> To find out which module may be the culprit, enter as root:
> 
> grep require: $(cat /proc/XXX/maps |fgrep .so|awk '{print $6}'|sort -u)
> 
> Replace XXX with the pid of a running apache process.

Fixed your grep up and did this instead:

# for pid in `pgrep apache2`; do for so in `cat /proc/$pid/maps | fgrep .so | awk '{ print $6 }' | sort -u`; do strings $so | grep -qi 'unknown require directive:' && echo $so; done; done

Which turned up this:
/usr/lib/apache2/modules/mod_auth_plain.so

This is in this package:
# dpkg -S /usr/lib/apache2/modules/mod_auth_plain.so
libapache2-mod-auth-plain: /usr/lib/apache2/modules/mod_auth_plain.so

Anything else?

Thanks,
Brian

Attachment: signature.asc
Description: Digital signature


Reply to: