[horde] Help: preauthenticate hook to select IMAP server
Cheewai Lai
cheewai.lai at gmail.com
Wed Mar 15 03:27:35 PST 2006
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. :-)
More information about the horde
mailing list