[horde] Help: preauthenticate hook to select IMAP server

Jan Schneider jan at horde.org
Wed Mar 15 14:21:59 PST 2006


Zitat von Cheewai Lai <cheewai.lai at gmail.com>:

> Hi,
>
> I use horde-3.1 + imp-4.1 + turba, and I'm a PHP newbie.
>
> My setup is essentially to function as a web-based IMAP gateway to
> many backend IMAP (MS Exchange) servers.
>
> Instead of letting users select from a static list of servers defined
> in servers.php on the login screen, I would like to look up the
> username in my LDAP server to figure out the user's IMAP server when
> user tries to login. The actual IMAP server should authenticate the
> username/password.
>
> Is preauthenticate hook in horde hooks.php the right place to do this?
>
> The sample code provided in hooks.php for LDAP lookup works fine but
> what global variables do I need to set to select the appropriate
> server based on my LDAP search result?
>
> Please advise and thanks in advance. Code snippets will be highly
> appreciated. :-)

http://wiki.horde.org/ImapSelect

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list