How to determine if some hook functions are registered for e.g the "Check User ID" phase

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

 



Is there some way to determine in a c-module which registered a authn
hook for authorization, if any other hook is configured in the "Check
User ID" phase of request processing?

Looking at:

https://httpd.apache.org/docs/2.4/de/mod/mod_lua.html#writinghooks

i can register a hook to negotiated the user ID (in any arbitrary way
and set r.user = 'foo').

How can any other module in the auth stack chain determine if there is
some auth hook registered for e.g. the "Check User ID" phase, if it
want's to know that detail?

kind regards

Torsten

PS: Little bit of background for that question - at the moment its e.g.
done in the svn authz module on the r->ap_auth_type but this does not
need to be set to be able to register a lua hook and run it in the
"Check User ID" phase.
So if that module wants to know if any auth is configured - what would
be the best way to get this info? Or is it a bad idea at all to look for
this information and do different things based on that info?

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[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