[imp] IMP 3.0 checking for IMAP server on LDAP

Jorge Izquierdo jizquierdo@sgi.es
Tue, 05 Mar 2002 18:22:24 +0100


Thatīs not exactly what I like. I think the variable $vdomain is to allow virtual
domains on your IMP site and allowing you to select a different IMAP server
depending of the virtual domain of each user.

I donīt want any virtual domains, but my users may have their IMAP server on
different machines. Maybe the solution is to take the parameter on my LDAP which
shows the server and set the $vdomain variable with which select the IMAP server
from the list of servers.php. Is this a good idea? Is there any better solution as
to set the server variable directly from the LDAP request?

Thank you very much everybody

Jorge


eculp@encontacto.net wrote:

> Quoting Jorge Izquierdo <jizquierdo@sgi.es>:
>
> > Thanks for your help but know Iīm writing my php code and I have a =
doubt:
> > whatīs
> > the varible I have to set with my LDAP lookup? I only want that the
> > information
> > taken from the LDAP will be the server name of the IMAP server for th=
e user
> > but I
> > would like that all other parameters of the server would be taken fro=
m the
> > rservers.php file. Is this possible ? What would be the varible? I us=
ed
> > $imp['server']  but this seems not to work.
>
> I'm not sure that I understand the question, Jorge.  You can always "pi=
rate"
> the code from horde/imp/config/conf.php and modify it to your needs or =
just
> uncomment it add the name of the function and use it as documented.  It=
 is
> actually applied in login.inc if my memory serves me right.
> The following code from that file may do what you are after.
>
>          $vdomain = getenv('HTTP_HOST');
>          $vdomain = preg_replace('|^mail\.|i', '', $vdomain);
>          $vdomain = strtolower($vdomain);
>
> If this isn't what you are looking for an explanation of what you can't
> get to work or what you want to do specifically would help.
>
> provecho y suerte,
>
> ed
> >
> > Thanks
> >
> >
> >
> > Chuck Hagenbuch wrote:
> >
> > > Quoting Jorge Izquierdo <jizquierdo@sgi.es>:
> > >
> > > > I hope not to disturb anybody but I have some problems with my we=
bmail
> > IMP
> > > > installation and Iīll be very pleased if anyone could help me. =
Iīm trying
> > to
> > > > obtain the IMAP server to connect from IMP with an LDAP session. =
I would
> > like
> > > > my IMP to do an ldapsearch to my LDAP server and looking for an
> > attribute
> > > > that shows the IMAP server for the user is trying to log in.
> > >
> > > You ought to be able to use the 'vinfo' hook to do this - just put =
the
> > custom
> > > LDAP code to select the mailserver in there.
> > >
> > > -chuck
> > >
> > > --
> > > Charles Hagenbuch, <chuck@horde.org>
> > > "A dream which helps you to live your reality with dignity
> > >  and justice is a good dream." - Tariq Ramadan
> > >
> > > --
> > > 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
> >
> >
> >
> > --
> > 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
> >
> >
>
> -------------------------------------------------
>
> --
> 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