On 2012-02-06, at 2:38 PM, Michael M Slusarz wrote:

> Quoting Marc Fournier <[email protected]>:
> 
>> On 2012-02-06, at 2:27 PM, Michael M Slusarz wrote:
>> 
>>> Quoting Marc Fournier <[email protected]>:
>>> 
>>>> I'm runnign Webmail Groupware 4.0.5 right now where one central install 
>>>> handles several hundred separate mail servers … right now, its setup so 
>>>> that if you go to http://webmail.<domain>, it knows how to connect to the 
>>>> mail server based on the <domain> part, but the current setup makes it 
>>>> hard for ppl to connect to https://webmail.<domain>, which literally 
>>>> setting up *hundreds* of SSL keys …
>>>> 
>>>> One suggestion by a client was to key it based on the username, instead of 
>>>> domain … so instead of going to http://webmail.<domain> and login in as 
>>>> user@domain, everyone would go to https://webmail.hub.org and login as 
>>>> user@domain, and the @domain part would be used to determine the right 
>>>> mail server …
>>>> 
>>>> Doing a google search for something like this, first thing I came across 
>>>> was:
>>>> 
>>>>    https://code.google.com/p/roundcube-automx/
>>>> 
>>>> The concept is out there, but, I'm not finding equivalent for Horde … did 
>>>> come across:
>>>> 
>>>>    http://wiki.horde.org/ImapSelect?referrer=HowTo
>>>> 
>>>> But trying to follow the example(s), I seem to be getting an empty $userId 
>>>> passed to the pre authenticate hook, so am still missing something …
>>>> 
>>>> Has anyone done this and is willing to share how / what am I missing?
>>> 
>>> You most likely want the preauthenticate hook. See 
>>> horde/config/hooks.php.dist
>> 
>> Right, examples of which can be found at the ImapSelect URL I posted above 
>> :(   And am having a problem with the fact that $userId doesn't seem to be 
>> being passed down … as I posted above …
> 
> No. That above wiki entry has nothing to do with Horde 4.  And it talks about 
> a hook called '_horde_hook_preauthenticate', not 'pre authenticate'.

Please actually *read* the wiki entry above, and scroll down to the bottom 
where it gives an example *for* Horde 4 … right now, I'm at the step where 
$userId is empty and it just returns back to the main process …

> Please read horde/config/hooks.php.dist about the hook titled 'pre 
> authenticate'.

All well and good, but I have,in my horde/config/conf.php file:

$conf['auth']['params']['app'] = 'imp';

so which hooks.php should I be modifying?  Based on the example on the wiki 
*for* Horde 4, and the fact that I'm using IMP for auth, I assumed the 
hooks.php *in* IMP … 



-- 
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]

Reply via email to