You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Helmut Schneider <ju...@gmx.de> on 2018/01/17 17:11:15 UTC

[users@httpd] ldap-status and

Hello all,

I have the following snippet:

<IfModule mod_ldap>
        <Location /ldap-status>
                SetHandler ldap-status
        </Location>
</IfModule>

This does not work, /ldap-status is not found. If I change to e.g.

<IfModule mod_authnz_ldap>

it does. Why?

Thank you!

[helmut@BSDHelmut ~]$ apachectl -t -D DUMP_MODULES | grep -i ldap
authnz_ldap_module (shared)
ldap_module (shared)
[helmut@BSDHelmut ~]$ uname -rs
FreeBSD 11.1-RELEASE-p6
[helmut@BSDHelmut ~]$ apachectl -v
Server version: Apache/2.4.29 (FreeBSD)
Server built:   unknown
[helmut@BSDHelmut ~]$

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ldap-status and

Posted by Helmut Schneider <ju...@gmx.de>.
On Wed, Jan 17, 2018 at 12:11 PM, Helmut Schneider <ju...@gmx.de> wrote:
>> Hello all,
>>
>> I have the following snippet:
>>
>> <IfModule mod_ldap>
>>        <Location /ldap-status>
>>                SetHandler ldap-status
>>        </Location>
>> </IfModule>
>>
>> This does not work, /ldap-status is not found. If I change to e.g.
>>
>> <IfModule mod_authnz_ldap>
>>
>> it does. Why?
>
> It just doesn't have an intuitive source file name:
>
> Module Identifier:ldap_module
> Source File:util_ldap.c

Hm, missed this, both

<IfModule ldap_module>
<IfModule util_ldap.c>

work. Thank you!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ldap-status and

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jan 17, 2018 at 12:11 PM, Helmut Schneider <ju...@gmx.de> wrote:
> Hello all,
>
> I have the following snippet:
>
> <IfModule mod_ldap>
>        <Location /ldap-status>
>                SetHandler ldap-status
>        </Location>
> </IfModule>
>
> This does not work, /ldap-status is not found. If I change to e.g.
>
> <IfModule mod_authnz_ldap>
>
> it does. Why?

It just doesn't have an intuitive source file name:

Module Identifier:ldap_module
Source File:util_ldap.c

I think the IfModule form you're using is matching the source file w/o
the .c, rather than the module name.
<IfModule [!]module-file|module-identifier> ... </IfModule>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org