[horde] Virtualhost context for hooks
Jan Schneider
jan at horde.org
Tue Jan 9 21:09:25 UTC 2018
Zitat von Nels Lindquist <nlindq at maei.ca>:
> Hi there.
>
> I'm using a preauthenticate hook to normalize login IDs against an
> LDAP server. In each virtualhost configuration file I've defined
> different LDAP search bases, but my hook functions appear to be using
> the root Horde search base rather than the virtualhost's overridden
> configuration.
>
> I'm referincing "global $conf" within my hook functions in order to
> access $conf['auth']['params']['basedn']; should I be incorporating
> something else to get the virtualhost overrides?
No. But you didnt explain how exactly your setup looks like.
And how about vhost-specific settings used anywhere else than hooks.php.
--
Jan Schneider
The Horde Project
https://www.horde.org/
More information about the horde
mailing list