[imp] Setting up the IMAP server to connect
Jorge Izquierdo
jizquierdo@sgi.es
Mon, 11 Mar 2002 16:52:28 +0100
Iīve found the function IMP::getSession (in imp/lib directory) but in this
function there is no $server = Horde::getFormData('server', ''); line, this is
of the CreateSession function, which is the one I should modify? I t should be
both?
Thanks
Jorge
Jan Schneider wrote:
> Zitat von Jorge Izquierdo <jizquierdo@sgi.es>:
>
> > Hi everybody. I'm still confused about the process by which IMP 3.0 s=
ets
> > the IMAP
> > server to connect whe the user logs in. I know that servers.php file =
is
> > involved in
> > this process but I donīt know which php file is the one which sets =
the
> > variable
> > which points the server to connect (and which is this variable??). I'=
m
> > trying to
> > add some code to select the server for each user based on an LDAP loo=
kup
> > (with the
> > user login name as athe argument for the search) but I donīt know w=
here I
> > should
> > put this new code.
> >
> > Coul anyone give me some hints on this? Does anybody perform an LDAP
> > query to get
> > the IMAP server to connect? Which file I should edit? If the answer w=
ould
> > be
> > editing the imp_get_vinfo function, whatīs the behaviour of this fu=
nction
> > during
> > the login process? how should I edit it to solve my problem?
> >
> > I would be very pleased with any hint on this.
>
> The server is selected in IMP::setupSession().
>
> If you want to setup a server list in servers.php and select the right
> server from this list automatically, you have to remove the line:
> $server = Horde::getFormData('server', '');
> and replace it by some ldap lookup code.
>
> If you don't want to add an entry for every server in servers.php becau=
se
> only the hostnames differ, you can use a hidden server list (with one
> entry) and change the line:
> $imp['server'] = $servers[$server]['server'];
> to lookup the correct hostname.
>
> The vinfo hook is only to modify the username on login.
>
> Good luck!
>
> Jan.
>
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
--
----------------------------------------------------------
Jorge Izquierdo Alonso
e-mail: jizquierdo@sgi.es
Tfn: +34 91 806 16 00 (switchboard)
Fax: +34 91 806 16 99
SGI Soluciones Globales Internet
C/Isaac Newton nš 11
28760 Tres Cantos, Madrid
http://www.sgi.es