[jonah] cli-backend.sh problem

Pavel Chytil pchytil@asp.ogi.edu
Thu, 7 Feb 2002 10:57:17 -0800


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
>