[imp] imp imap/ssl authentication

Ron Peterson rpeterso@mtholyoke.edu
Tue, 8 Jan 2002 11:42:19 -0500 (EST)


On Tue, 8 Jan 2002, Roman Serbski wrote:

> Ron Peterson wrote:
> > On Thu, 3 Jan 2002, Ron Peterson wrote:
> >
> >
> >>If I use the IMAP server, I can log in o.k.  If I use the ssl server,
> >>I cannot.  After attempting to use the ssl server, I cannot go back
> >>and use the non-ssl server either.
> >>
> >
> > Well, I've at least narrowed this down to being a problem with PHP.
> >
> > <?
> >   $mbox = imap_open ("{localhost:993/imap/ssl/novalidate-cert}INBOX", "username", "password");
> >   print $mbox . "\n";
> > ?>
> >
> > A corresponding non-ssl script works fine.  This script chokes in exactly
> > the same way IMP is.  A new imapd process is started, but nothing ever
> > happens.
>
> Hi
>
> I'm sorry if I didn't follow this thread but did you compile c-Client
> with SSL support?

Well, yes and no.  I finally got it working.

I have RH's imap and imap-devel RPM's installed.  I have a working
imap/ssl installation using these RPM's that I've used for a long time
(well, I guess imap-devel is irrelevant for this).  I tried the following:

1. compile php --with-imap and --with-imap-ssl.  Doesn't work.

Install OpenSSL from source.

2. compile php --with-imap and --with-imap-ssl=/my/own/compiled/ssl.
Doesn't work.

Install UW imap from source.  Edit Makefile to set SSLTYPE=unix.  Then
`make lrh`.

3. compile php --with-imap=/my/own/compiled/imap
--with-imap-ssl=/my/own/compiled/ssl.  Doesn't work.

Edit UW imap Makefile, and change environment to point to my openssl
install, rather than red hat's.

#       SPECIALS="GSSDIR=/usr/kerberos SSLDIR=/usr/share/ssl
SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib"
# change to reflect location of my locally compiled openssl
        SPECIALS="GSSDIR=/usr/kerberos SSLDIR=/usr/local/ssl
SSLINCLUDE=/usr/local/ssl/include SSLLIB=/usr/local/ssl/lib"

4. compile php as for (3.).  WORKS!!!  Hooray!

So, you apparently cannot rely on the RH imap-devel rpm's to provide the
necessary functionality.  Additionally, you cannot (or I could not)
compile the uw imap source against the rh openssl-devel installation.


-- 
Ron Peterson                           -o)
Network & Systems Manager              /\\
Mount Holyoke College                 _\_v
http://www.mtholyoke.edu/~rpeterso    ----



>From jan@horde.org Date: Tue,  8 Jan 2002 17:49:19 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 79937 invoked from network); 8 Jan 2002 16:51:01 -0000
Received: from mailout04.sul.t-online.com (194.25.134.18)
  by clark.horde.org with SMTP; 8 Jan 2002 16:51:01 -0000
Received: from fwd01.sul.t-online.de 
	by mailout04.sul.t-online.de with smtp 
	id 16NzSm-0001ag-04; Tue, 08 Jan 2002 17:51:00 +0100
Received: from linux.wg.de (320034214675-0001@[217.225.46.67]) by fmrl01.sul.t-online.com
	with esmtp id 16NzSf-1HyTtgC; Tue, 8 Jan 2002 17:50:53 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g08GnK926284
	for <imp@lists.horde.org>; Tue, 8 Jan 2002 17:49:20 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Tue,  8 Jan 2002 17:49:19 +0100
Message-ID: <1010508559.3c3b230fd2c82@linux.wg.de>
Date: Tue,  8 Jan 2002 17:49:19 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <20020108150009.95534.qmail@web14808.mail.yahoo.com> <a05100302b860cd580838@[155.68.72.52]>
In-Reply-To: <a05100302b860cd580838@[155.68.72.52]>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] don't display folders at login screen?

Zitat von Matt Richard <m_richard@email.fandm.edu>:

> I am using IMP to authenticate users, via IMAP.
> 
> I am not allowing users to select a server, since our installation is 
> for one email server only.
> 
> How can I make the "Folder Prefix" field become invisible?  I don't 
> want users to be able to specify the folder prefix, and I don't want 
> anyone to see this field and become confused.
> 
> Could this become an option in the imp/config/conf.php , such as
> 
>     $conf['server']['change_prefix'] = false;
> 
> where false means it can't be changed, and isn't displayed on the login
> screen?

Lock the folders preference in prefs.php.

Jan.

--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::


>From jan@horde.org Date: Tue,  8 Jan 2002 17:48:27 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 79956 invoked from network); 8 Jan 2002 16:51:04 -0000
Received: from mailout04.sul.t-online.com (194.25.134.18)
  by clark.horde.org with SMTP; 8 Jan 2002 16:51:04 -0000
Received: from fwd01.sul.t-online.de 
	by mailout04.sul.t-online.de with smtp 
	id 16NzSm-0001ag-07; Tue, 08 Jan 2002 17:51:00 +0100
Received: from linux.wg.de (320034214675-0001@[217.225.46.67]) by fmrl01.sul.t-online.com
	with esmtp id 16NzSg-1HyTthC; Tue, 8 Jan 2002 17:50:54 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g08GmR926279
	for <imp@lists.horde.org>; Tue, 8 Jan 2002 17:48:27 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Tue,  8 Jan 2002 17:48:27 +0100
Message-ID: <1010508507.3c3b22db2f34c@linux.wg.de>
Date: Tue,  8 Jan 2002 17:48:27 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <010f01c19852$62bf29c0$9701640a@nicovmware> <1010505520.3c3b1730da1ad@linux.wg.de> <015a01c19861$5e7fad80$9701640a@nicovmware>
In-Reply-To: <015a01c19861$5e7fad80$9701640a@nicovmware>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] Pb with IMP 3.0 / Horde 2.0

Huh, that's strange. Can you give us some more details on your 
configuration/software/versions?

Zitat von Nicolas JOUANIN <n.jouanin@regie-france.com>:

> That's what i guessed but except the following message in error_log
> (Apache)
> nothing appears (in syslog, or whatever ...)
> 
> [Tue Jan  8 17:14:09 2002] [info] [client 10.100.1.151] (32)Relais
> brisé
> (pipe): client stopped connection before rwrite completed
> 
> ----- Original Message -----
> Wrom: STTZRCLBDXRQBGJSNBOHMKHJYFMYXOE
> To: <imp@lists.horde.org>
> Sent: Tuesday, January 08, 2002 4:58 PM
> Subject: Re: [imp] Pb with IMP 3.0 / Horde 2.0
> 
> 
> > Zitat von Nicolas JOUANIN <n.jouanin@regie-france.com>:
> >
> > >     Hi,
> > >
> > >  I experience some problems with the new version of IMP and Horde.
> > >
> > > When connected i usually get unterminated pages. For example here
> the
> > > source code of the maintenance task page:
> > >
> > > You can see that the page doens't terminate. I don't know why, and
> I
> > > can't see any message in Apache or Horde log files.
> > >
> > > Does anyone ever seen this pb ?
> >
> > Your server segfaults. Check the logs.
> >
> > Jan.
> >
> > --
> > ::::::::::::::::::::::::::::::::::::::::
> > AMMMa AG - discover your knowledge
> > :::::::::::::::::::::::::::
> > Detmolder Str. 25-33 :: D-33604 Bielefeld
> > fon +49.521.96878-0 :: fax  +49.521.96878-20
> > http://www.ammma.de
> > ::::::::::::::::::::::::::::::::::::::::::::::
> >
> > --
> > 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
> 
> 


Jan.

--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::