[jonah] No longer able to retrieve headlines

Brad Hazledine brad.hazledine@caledoncard.com
Wed, 30 Jan 2002 13:23:08 -0500 (EST)


>
> For every file? Do you have fopen_wrappers turned off?
>
That was it Chuck...turned them off last week because of a bugtraq report.

Thanks for your help.

Brad




>From paul@shorttermwhat.com Date: Wed,  6 Feb 2002 11:13:21 -0800
Return-Path: <paul@shorttermwhat.com>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 38039 invoked from network); 6 Feb 2002 19:13:23 -0000
Received: from user-119bpv9.biz.mindspring.com (HELO mail.shorttermwhat.com) (66.149.231.233)
  by clark.horde.org with SMTP; 6 Feb 2002 19:13:23 -0000
Received: by mail.shorttermwhat.com (Postfix, from userid 65534)
	id 26FAB2084B; Wed,  6 Feb 2002 11:13:22 -0800 (PST)
Received: from 64.162.42.195 ( [64.162.42.195])
	as user pbauer@localhost by www.shorttermwhat.com with HTTP;
	Wed,  6 Feb 2002 11:13:21 -0800
Message-ID: <1013022801.3c618051daec6@www.shorttermwhat.com>
Date: Wed,  6 Feb 2002 11:13:21 -0800
From: Paul Bauer <paul@shorttermwhat.com>
To: jonah@lists.horde.org
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
Subject: Understanding cli-backend.sh/php


I have been trying to get jonah working as it would replace my existing resin 
install flawlessly.

Unfortunately I am unable to get jonah to grab or update the headlines.
I do not understand the syntax of the conf.php file.  My apologies.

## Set username, password, and the URL of your Jonah installation.
USERNAME="horde"
PASSWORD=""
URL="http://www.shorttermwhat.com/horde/jonah/backend.php?mode=update"

wget -O - --bind-address 127.0.0.1 --http-user=$USERNAME 
--http-passwd=$PASSWORD
 $URL > /dev/null
----------END CONFIG

mail# sh cli-backend.sh
--11:10:15--  http://www.shorttermwhat.com/horde/jonah/backend.php?mode=update
           => `-'
Connecting to juan:3128...
socket: Operation timed out
Retrying.
 

juan is my http and ftp proxy.

Any help would be greatly apreciated.  
Thank you.
Paul.


>From pchytil@asp.ogi.edu Date: Thu,  7 Feb 2002 10:36:35 -0800
Return-Path: <pchytil@asp.ogi.edu>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 40137 invoked from network); 7 Feb 2002 18:36:36 -0000
Received: from asp.ogi.edu (129.95.94.10)
  by clark.horde.org with SMTP; 7 Feb 2002 18:36:36 -0000
Received: from asp.ogi.edu (localhost [127.0.0.1])
	by asp.ogi.edu (8.12.1/8.12.1) with ESMTP id g17IaZFW004526
	for <jonah@lists.horde.org>; Thu, 7 Feb 2002 10:36:35 -0800
Received: (from nobody@localhost)
	by asp.ogi.edu (8.12.1/8.12.1/Submit) id g17IaZ7b004525
	for jonah@lists.horde.org; Thu, 7 Feb 2002 10:36:35 -0800
X-Authentication-Warning: asp.ogi.edu: nobody set sender to pchytil@asp.ogi.edu using -f
Received: from 129.95.94.100 ( [129.95.94.100])
	as user pchytil@asp.ogi.edu by mail.asp.ogi.edu with HTTP;
	Thu,  7 Feb 2002 10:36:35 -0800
Message-ID: <1013106995.3c62c93392a7d@mail.asp.ogi.edu>
Date: Thu,  7 Feb 2002 10:36:35 -0800
From: Pavel Chytil <pchytil@asp.ogi.edu>
To: jonah@lists.horde.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-MOQ1013106995ff54be86cd36c2e1439c7df6527369ae"
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: cli-backend.sh problem

---MOQ1013106995ff54be86cd36c2e1439c7df6527369ae
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hello,

I am having problems with update of articles in jonah. I am trying to use
cli-backend.sh, but I am getting following output (junk.txt attached) if I save
the output to file and not to /dev/null.

I guess --bind-address 127.0.0.1 should be --bind-address=127.0.0.1 according
to man pages.

Any clues?

Thanks a lot,

 Pavel


---MOQ1013106995ff54be86cd36c2e1439c7df6527369ae
Content-Type: text/plain; name="junk.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="junk.txt"

PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgIkRURC94aHRtbDEtdHJhbnNpdGlvbmFsLmR0ZCI+CjwhLS0gSU1QOiBDb3B5cmlnaHQg
MjAwMSwgVGhlIEhvcmRlIFByb2plY3QuIElNUCBpcyB1bmRlciB0aGUgR1BMLiAtLT4KPCEtLSBI
b3JkZSBQcm9qZWN0OiBodHRwOi8vaG9yZGUub3JnLyB8IElNUDogaHR0cDovL2hvcmRlLm9yZy9p
bXAvIC0tPgo8IS0tICAgIEdOVSBQdWJsaWMgTGljZW5zZTogaHR0cDovL3d3dy5mc2Yub3JnL2Nv
cHlsZWZ0L2dwbC5odG1sICAgLS0+CjxodG1sPjxoZWFkPgo8dGl0bGU+TWFpbCA6OiBXZWxjb21l
PC90aXRsZT4KPGxpbmsgaHJlZj0iL2hvcmRlL2Nzcy5waHA/YXBwPWltcCIgcmVsPSJzdHlsZXNo
ZWV0IiB0eXBlPSJ0ZXh0L2NzcyIgLz4KPC9oZWFkPgoKPGJvZHkgb25sb2FkPSJzZXRGb2N1cygp
Ij4KPHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCIgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4K
PCEtLQoKZnVuY3Rpb24gc2V0Rm9jdXMoKQp7CiAgICBkb2N1bWVudC5pbXBsb2dpbi5pbWFwdXNl
ci5mb2N1cygpOwp9CgpmdW5jdGlvbiBzdWJtaXRfbG9naW4oKQp7CiAgICAgICAgaWYgKGRvY3Vt
ZW50LmltcGxvZ2luLmltYXB1c2VyLnZhbHVlID09ICIiKSB7CiAgICAgICAgYWxlcnQoIlBsZWFz
ZSBwcm92aWRlIHlvdXIgdXNlcm5hbWUgYW5kIHBhc3N3b3JkIik7CiAgICA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ZygpIik7CgovLy0tPgo8L3NjcmlwdD4KCjxzY3JpcHQgbGFuZ3VhZ2U9Ikph
dmFTY3JpcHQxLjIiIHR5cGU9InRleHQvamF2YXNjcmlwdCI+CjwhLS0KLy8gU2V0dXAgdGhlIGVu
dGVyIGtleXRyYXAgY29kZQppZiAod2luZG93LmRvY3VtZW50LmNhcHR1cmVFdmVudHMgIT0gbnVs
bCkgewogICAgd2luZG93LmRvY3VtZW50LmNhcHR1cmVFdmVudHMoRXZlbnQuS0VZUFJFU1MpOwog
ICAgd2luZG93LmRvY3VtZW50Lm9ua2V5cHJlc3MgPSBlbnRlcl9rZXlfdHJhcDsKfQovLy0tPgo8
L3NjcmlwdD4KPCEtLSBUaGlzIGZpbGUgY29udGFpbnMgYW55ICJNZXNzYWdlIE9mIFRoZSBEYXki
IFR5cGUgaW5mb3JtYXRpb24gLS0+CjwhLS0gSXQgd2lsbCBiZSBpbmNsdWRlZCBiZWxvdyB0aGUg
bG9nLWluIGZvcm0gb24gdGhlIGxvZ2luIHBhZ2UuIC0tPgo8c2NyaXB0IGxhbmd1YWdlPSJKYXZh
U2NyaXB0IiB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgo8IS0tCmlmIChwYXJlbnQuZnJhbWVzLmhv
cmRlX21haW4pIHBhcmVudC5kb2N1bWVudC50aXRsZSA9ICdNYWlsIDo6IFdlbGNvbWUnOwovLy0t
Pgo8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+Cg==

---MOQ1013106995ff54be86cd36c2e1439c7df6527369ae--


>From chuck@horde.org Date: Thu,  7 Feb 2002 13:39:35 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 40295 invoked from network); 7 Feb 2002 18:40:13 -0000
Received: from h00104bc60b3c.ne.mediaone.net (HELO marina.horde.org) (24.91.196.127)
  by clark.horde.org with SMTP; 7 Feb 2002 18:40:13 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 6CC4D39FF; Thu,  7 Feb 2002 13:39:35 -0500 (EST)
Received: from 192.168.0.129 ( [192.168.0.129])
	as user chuck@localhost by marina.horde.org with HTTP;
	Thu,  7 Feb 2002 13:39:35 -0500
Message-ID: <1013107175.3c62c9e74329d@marina.horde.org>
Date: Thu,  7 Feb 2002 13:39:35 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: jonah@lists.horde.org
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu>
In-Reply-To: <1013106995.3c62c93392a7d@mail.asp.ogi.edu>
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
Subject: Re: [jonah] cli-backend.sh problem

Quoting Pavel Chytil <pchytil@asp.ogi.edu>:

> I am having problems with update of articles in jonah. I am trying to use
> cli-backend.sh, but I am getting following output (junk.txt attached) if I
> save the output to file and not to /dev/null.

You're not pointing it at backend.php, or you're not setting authentication up 
correctly.

> I guess --bind-address 127.0.0.1 should be --bind-address=127.0.0.1
> according to man pages.

Worked fine when I tested it, and I got the parameter from the man pages. Will 
change it if it's actually causing problems for anyone.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin


>From pchytil@asp.ogi.edu Date: Thu,  7 Feb 2002 10:57:17 -0800
Return-Path: <pchytil@asp.ogi.edu>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 41529 invoked from network); 7 Feb 2002 18:57:19 -0000
Received: from asp.ogi.edu (129.95.94.10)
  by clark.horde.org with SMTP; 7 Feb 2002 18:57:19 -0000
Received: from asp.ogi.edu (localhost [127.0.0.1])
	by asp.ogi.edu (8.12.1/8.12.1) with ESMTP id g17IvIFW004681
	for <jonah@lists.horde.org>; Thu, 7 Feb 2002 10:57:18 -0800
Received: (from nobody@localhost)
	by asp.ogi.edu (8.12.1/8.12.1/Submit) id g17IvIwt004680
	for jonah@lists.horde.org; Thu, 7 Feb 2002 10:57:18 -0800
X-Authentication-Warning: asp.ogi.edu: nobody set sender to pchytil@asp.ogi.edu using -f
Received: from 129.95.94.100 ( [129.95.94.100])
	as user pchytil@asp.ogi.edu by mail.asp.ogi.edu with HTTP;
	Thu,  7 Feb 2002 10:57:17 -0800
Message-ID: <1013108237.3c62ce0dd0f85@mail.asp.ogi.edu>
Date: Thu,  7 Feb 2002 10:57:17 -0800
From: Pavel Chytil <pchytil@asp.ogi.edu>
To: jonah@lists.horde.org
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu> <1013107175.3c62c9e74329d@marina.horde.org>
In-Reply-To: <1013107175.3c62c9e74329d@marina.horde.org>
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
Subject: Re: [jonah] cli-backend.sh problem

Could you please tell what is wrong? I am using imap as my login mechanism and
pchytil is administrator for horde.

in jonah/config/conf.php:

/**
 ** HTTP Auth settings
 **/

// If these settings are present, backend.php will use them instead of
// Horde administration. If they are not present, a Horde admin must
// be logged in to use backend.php.
$conf['auth']['http']['username'] = 'pchytil';

// Note: No access will be allowed with an empty password.
$conf['auth']['http']['password'] = 'password';

// This array must contain any IP addresses to be accessible via HTTP auth.
$conf['auth']['http']['ips'] = array('129.95.94.10', '127.0.0.1');


in jonah/scripts/cli-backuend.sh:

#!/bin/sh
# $Horde: jonah/scripts/cli-backend.sh,v 1.3 2001/12/25 16:13:43 chuck Exp $

## Set username, password, and the URL of your Jonah installation.
USERNAME="pchytil"
PASSWORD="password"
URL="http://mail.asp.ogi.edu/horde/jonah/backend.php?mode=update"

## Choose lynx or wget:
# lynx -dump -auth=$USERNAME:$PASSWORD $URL > /dev/null
wget --quiet -O - --bind-address=127.0.0.1 --http-user=$USERNAME
--http-passwd=$PASSWORD $URL > /dev/null

Quoting Chuck Hagenbuch <chuck@horde.org>:

> Quoting Pavel Chytil <pchytil@asp.ogi.edu>:
> 
> > I am having problems with update of articles in jonah. I am trying to use
> > cli-backend.sh, but I am getting following output (junk.txt attached) if
> I
> > save the output to file and not to /dev/null.
> 
> You're not pointing it at backend.php, or you're not setting authentication
> up 
> correctly.
> 
> > I guess --bind-address 127.0.0.1 should be --bind-address=127.0.0.1
> > according to man pages.
> 
> Worked fine when I tested it, and I got the parameter from the man pages.
> Will 
> change it if it's actually causing problems for anyone.
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> "What was and what may be, lie, like children whose faces we cannot see, in
> the
> arms of silence. All we ever have is here, now." - Ursula K. Le Guin
> 
> -- 
> Jonah mailing list: http://horde.org/jonah/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: jonah-unsubscribe@lists.horde.org
> 




>From eric.rostetter@physics.utexas.edu Date: Thu,  7 Feb 2002 14:32:09 -0600
Return-Path: <eric.rostetter@physics.utexas.edu>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 52488 invoked from network); 7 Feb 2002 20:32:12 -0000
Received: from pcgxmt1.ph.utexas.edu (root@128.83.114.121)
  by clark.horde.org with SMTP; 7 Feb 2002 20:32:12 -0000
Received: (from httpd@localhost)
	by pcgxmt1.ph.utexas.edu (8.9.3/8.9.3) id OAA13889
	for jonah@lists.horde.org; Thu, 7 Feb 2002 14:32:09 -0600
Received: from 128.83.155.179 ( [128.83.155.179])
	as user ericr@localhost by mail.ph.utexas.edu with HTTP;
	Thu,  7 Feb 2002 14:32:09 -0600
Message-ID: <1013113929.3c62e449cd153@mail.ph.utexas.edu>
Date: Thu,  7 Feb 2002 14:32:09 -0600
From: Eric Rostetter <eric.rostetter@physics.utexas.edu>
To: jonah@lists.horde.org
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu>
In-Reply-To: <1013106995.3c62c93392a7d@mail.asp.ogi.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.1-cvs
Subject: Re: [jonah] cli-backend.sh problem

Quoting Pavel Chytil <pchytil@asp.ogi.edu>:

> Hello,
> 
> I am having problems with update of articles in jonah. I am trying to use
> cli-backend.sh, but I am getting following output (junk.txt attached) if I
> save the output to file and not to /dev/null.

You didn't allow guest access to jonah (didn't allow guest access in
horde/config/registry.php).  Hence when you hit backend.php, 
it includes /jonah/lib/base.php.  The last thing in base.php says if
guest access isn't allowed, then you need to be logged in by Horde, so 
it redirects you to the Horde login page.  Since the included base.php
and its login checks are *before* the login checks in backend.php, they
take priority.

Solutions:

1) Allow guest access
2) Modify base.php to allow access somehow.

I did #2.  I modified base.php to say if the url is backend.php and the
IP is an allowed IP to allow it through, otherwise use the horde auth
stuff.  Hence it does horde auth for all other urls, and httpd auth for
backend.php.

Eric Rostetter
The Department of Physics
The University of Texas at Austin
Austin, Texas 78712-1081

Office:    RLM 7.126
Telephone: 512-471-5821
Email:	   eric.rostetter@physics.utexas.edu

------------------------------------------------------------
"I like driving around with my two cats, especially on the 
freeway.  I make them wear little hats so that I can use the 
carpool lane.  Way too much time on your hands too?  Call me. 
SWF, 42, 5'10", brown/blue."  -- from the book "Plain Fat 
Chick Seeks Guy Who Likes Broccoli" (Gibbs Smith)


>From pchytil@asp.ogi.edu Date: Thu,  7 Feb 2002 13:32:13 -0800
Return-Path: <pchytil@asp.ogi.edu>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 58720 invoked from network); 7 Feb 2002 21:32:13 -0000
Received: from asp.ogi.edu (129.95.94.10)
  by clark.horde.org with SMTP; 7 Feb 2002 21:32:13 -0000
Received: from asp.ogi.edu (localhost [127.0.0.1])
	by asp.ogi.edu (8.12.1/8.12.1) with ESMTP id g17LWDFW006154
	for <jonah@lists.horde.org>; Thu, 7 Feb 2002 13:32:13 -0800
Received: (from nobody@localhost)
	by asp.ogi.edu (8.12.1/8.12.1/Submit) id g17LWDsF006153
	for jonah@lists.horde.org; Thu, 7 Feb 2002 13:32:13 -0800
X-Authentication-Warning: asp.ogi.edu: nobody set sender to pchytil@asp.ogi.edu using -f
Received: from 129.95.94.100 ( [129.95.94.100])
	as user pchytil@asp.ogi.edu by mail.asp.ogi.edu with HTTP;
	Thu,  7 Feb 2002 13:32:13 -0800
Message-ID: <1013117533.3c62f25d816bb@mail.asp.ogi.edu>
Date: Thu,  7 Feb 2002 13:32:13 -0800
From: Pavel Chytil <pchytil@asp.ogi.edu>
To: jonah@lists.horde.org
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu> <1013113929.3c62e449cd153@mail.ph.utexas.edu>
In-Reply-To: <1013113929.3c62e449cd153@mail.ph.utexas.edu>
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
Subject: Re: [jonah] cli-backend.sh problem

Now it is working fine, 

Thanks a lot,

Pavel

Quoting Eric Rostetter <eric.rostetter@physics.utexas.edu>:

> Quoting Pavel Chytil <pchytil@asp.ogi.edu>:
> 
> > Hello,
> > 
> > I am having problems with update of articles in jonah. I am trying to use
> > cli-backend.sh, but I am getting following output (junk.txt attached) if
> I
> > save the output to file and not to /dev/null.
> 
> You didn't allow guest access to jonah (didn't allow guest access in
> horde/config/registry.php).  Hence when you hit backend.php, 
> it includes /jonah/lib/base.php.  The last thing in base.php says if
> guest access isn't allowed, then you need to be logged in by Horde, so 
> it redirects you to the Horde login page.  Since the included base.php
> and its login checks are *before* the login checks in backend.php, they
> take priority.
> 
> Solutions:
> 
> 1) Allow guest access
> 2) Modify base.php to allow access somehow.
> 
> I did #2.  I modified base.php to say if the url is backend.php and the
> IP is an allowed IP to allow it through, otherwise use the horde auth
> stuff.  Hence it does horde auth for all other urls, and httpd auth for
> backend.php.
> 
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
> Austin, Texas 78712-1081
> 
> Office:    RLM 7.126
> Telephone: 512-471-5821
> Email:	   eric.rostetter@physics.utexas.edu
> 
> ------------------------------------------------------------
> "I like driving around with my two cats, especially on the 
> freeway.  I make them wear little hats so that I can use the 
> carpool lane.  Way too much time on your hands too?  Call me. 
> SWF, 42, 5'10", brown/blue."  -- from the book "Plain Fat 
> Chick Seeks Guy Who Likes Broccoli" (Gibbs Smith)
> 
> -- 
> Jonah mailing list: http://horde.org/jonah/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: jonah-unsubscribe@lists.horde.org
> 




>From eric.rostetter@physics.utexas.edu Date: Thu,  7 Feb 2002 17:38:17 -0600
Return-Path: <eric.rostetter@physics.utexas.edu>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 81012 invoked from network); 7 Feb 2002 23:38:20 -0000
Received: from pcgxmt1.ph.utexas.edu (root@128.83.114.121)
  by clark.horde.org with SMTP; 7 Feb 2002 23:38:20 -0000
Received: (from httpd@localhost)
	by pcgxmt1.ph.utexas.edu (8.9.3/8.9.3) id RAA29963;
	Thu, 7 Feb 2002 17:38:18 -0600
From: Eric J Rostetter <eric.rostetter@physics.utexas.edu>
Received: from 128.83.155.179 ( [128.83.155.179])
	as user ericr@localhost by mail.ph.utexas.edu with HTTP;
	Thu,  7 Feb 2002 17:38:17 -0600
Message-ID: <1013125097.3c630fe9ecd31@mail.ph.utexas.edu>
Date: Thu,  7 Feb 2002 17:38:17 -0600
To: jonah@lists.horde.org, Pavel Chytil <pchytil@asp.ogi.edu>
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu> <1013113929.3c62e449cd153@mail.ph.utexas.edu> <1013117533.3c62f25d816bb@mail.asp.ogi.edu>
In-Reply-To: <1013117533.3c62f25d816bb@mail.asp.ogi.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.1-cvs
Subject: Re: [jonah] cli-backend.sh problem

Quoting Pavel Chytil <pchytil@asp.ogi.edu>:

> Now it is working fine, 
> 
> Thanks a lot,
> 
> Pavel

Great! Care to share what you did to make it work?

Eric


>From pchytil@asp.ogi.edu Date: Thu,  7 Feb 2002 15:45:02 -0800
Return-Path: <pchytil@asp.ogi.edu>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 82203 invoked from network); 7 Feb 2002 23:45:03 -0000
Received: from asp.ogi.edu (129.95.94.10)
  by clark.horde.org with SMTP; 7 Feb 2002 23:45:03 -0000
Received: from asp.ogi.edu (localhost [127.0.0.1])
	by asp.ogi.edu (8.12.1/8.12.1) with ESMTP id g17Nj2FW007236;
	Thu, 7 Feb 2002 15:45:02 -0800
Received: (from nobody@localhost)
	by asp.ogi.edu (8.12.1/8.12.1/Submit) id g17Nj2tB007235;
	Thu, 7 Feb 2002 15:45:02 -0800
X-Authentication-Warning: asp.ogi.edu: nobody set sender to pchytil@asp.ogi.edu using -f
Received: from 129.95.94.100 ( [129.95.94.100])
	as user pchytil@asp.ogi.edu by mail.asp.ogi.edu with HTTP;
	Thu,  7 Feb 2002 15:45:02 -0800
Message-ID: <1013125502.3c63117ea81e4@mail.asp.ogi.edu>
Date: Thu,  7 Feb 2002 15:45:02 -0800
From: Pavel Chytil <pchytil@asp.ogi.edu>
To: Eric J Rostetter <eric.rostetter@physics.utexas.edu>
Cc: jonah@lists.horde.org
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu> <1013113929.3c62e449cd153@mail.ph.utexas.edu> <1013117533.3c62f25d816bb@mail.asp.ogi.edu> <1013125097.3c630fe9ecd31@mail.ph.utexas.edu>
In-Reply-To: <1013125097.3c630fe9ecd31@mail.ph.utexas.edu>
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
Subject: Re: [jonah] cli-backend.sh problem

I have to admit that I took the lazy way out, I have allowed the guest account
for jonah, even though second option would be more appropriate.
I will take a look into it later on.

Pavel

Quoting Eric J Rostetter <eric.rostetter@physics.utexas.edu>:

> Quoting Pavel Chytil <pchytil@asp.ogi.edu>:
> 
> > Now it is working fine, 
> > 
> > Thanks a lot,
> > 
> > Pavel
> 
> Great! Care to share what you did to make it work?
> 
> Eric
> 




>From chuck@horde.org Date: Fri,  8 Feb 2002 00:20:34 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact jonah-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list jonah@lists.horde.org
Received: (qmail 96052 invoked from network); 8 Feb 2002 05:21:12 -0000
Received: from h00104bc60b3c.ne.mediaone.net (HELO marina.horde.org) (24.91.196.127)
  by clark.horde.org with SMTP; 8 Feb 2002 05:21:12 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 61BAF39FF; Fri,  8 Feb 2002 00:20:34 -0500 (EST)
Received: from 192.168.0.130 ( [192.168.0.130])
	as user chuck@localhost by marina.horde.org with HTTP;
	Fri,  8 Feb 2002 00:20:34 -0500
Message-ID: <1013145634.3c6360223832b@marina.horde.org>
Date: Fri,  8 Feb 2002 00:20:34 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: jonah@lists.horde.org
References: <1013106995.3c62c93392a7d@mail.asp.ogi.edu> <1013113929.3c62e449cd153@mail.ph.utexas.edu>
In-Reply-To: <1013113929.3c62e449cd153@mail.ph.utexas.edu>
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
Subject: Re: [jonah] cli-backend.sh problem

Quoting Eric Rostetter <eric.rostetter@physics.utexas.edu>:

> 2) Modify base.php to allow access somehow.

Try what I just committed - slightly different; it says that backend.php will 
either handle auth, or exit (which it does), so don't bother redirecting 
anywhere.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin