Fw: Re: [sork] Problem with Driver SQL of module Passwd
enza raspante
enza.raspante at mail.ru
Tue Jul 20 06:43:41 PDT 2004
Thanks, dear Eric!
In effect i added that line you suggested to me at the file backends.php:
'protocol' => 'unix',
and now it looks better...
Now there is no more that first output of error:
"Notice: Undefined index: protocol
in /usr/local/www/horde/passwd/lib/Driver/sql.php on line 53
But,nevertheless, the problem remained. The second output of error still appairs:
Failure in changing password : Incorrect Password"
I cannot still change passwords...
I'm working on a FreeBSD 5.2.1. Installed Horde and Passwd from ports by cvsup.
Releases are: horde-2.2.5.tar.gz and passwd-2.2.1.tar.gz.
Many thanks in advance to all of you for any further help!
Best greetings
Enza Raspante
p.s: For any necessity i add here below my first mail to this mailing list, so you can have a look of my complete configuration.
Hi all!
>
>
> I would like to explain briefly which is my problem.
> I have on my server a server mail builded with postfix and cyrus and
> users stored in a mysql db,
> horde is working fine, and then decided to install also module for
> changing passwords.
> This is the output error:
>
> "Notice: Undefined index: protocol
> in /usr/local/www/horde/passwd/lib/Driver/sql.php on line 53
> Failure in changing password : Incorrect Password"
>
> Here is my configuration:
>
>
> In .../horde/config/registry.php added this entry:
> $this->applications['passwd'] = array(
> 'fileroot' => dirname(__FILE__) . '/../passwd',
> 'webroot' => $this->applications['horde']['webroot'] . '/passwd',
> 'icon' => $this->applications['horde']['webroot'] .
> '/passwd/graphics/lock.g
> if',
> 'name' => _("Password"),
> 'allow_guests' => false,
> 'show' => true,
> 'status' => 'active'
> );
>
> In .../horde/imp/config/conf.php added the word 'passwd' near to
> 'turba' in this line:
> $conf['menu']['apps'] = array('turba');
>
> obtaining the following result:
> $conf['menu']['apps'] = array('turba','passwd');
>
> In .../horde/passwd/config/conf.php i looked for this line:
> $conf['menu']['apps'] = array();
>
> and modified this way:
> $conf['menu']['apps'] = array('imp');
>
>
> Then the most important file, backends.php. Now it looks like that:
> <?php
>
> $backends['sql'] = array (
> 'name' => 'Horde Authentication',
> 'preferred' => '',
> 'password policy' => array(
> 'minLength' => 3,
> 'maxLength' => 20,
> 'maxSpace' => 0,
> 'minUpper' => 0,
> 'minLower' => 0,
> 'minNumeric' => 0
> ),
> 'driver' => 'sql',
> 'params' => array(
> 'phptype' => 'mysql',
> 'hostspec' => 'localhost',
> 'username' => 'mail',
> 'password' => '*****',
> 'encryption' => 'crypt',
> 'database' => 'mail',
> 'table' => 'users',
> 'user_col' => 'login',
> 'pass_col' => 'password'
> )
> );
>
> Many thanks in advance for your help!
> Bye
> Enza Raspante
-----Original Message-----
From: Eric Rostetter <eric.rostetter at physics.utexas.edu>
To: sork at lists.horde.org
Date: Thu, 15 Jul 2004 11:26:53 -0500
Subject: Re: [sork] Problem with Driver SQL of module Passwd
>
> Quoting enza raspante <enza.raspante at mail.ru>:
>
> > "Notice: Undefined index: protocol
> > in /usr/local/www/horde/passwd/lib/Driver/sql.php on line 53
>
> Specify the protocol in the sql stanza (see below).
>
> > 'driver' => 'sql',
> > 'params' => array(
> > 'phptype' => 'mysql',
> > 'hostspec' => 'localhost',
> > 'username' => 'mail',
> > 'password' => '*****',
>
> Add here, something like:
>
> 'protocol' => 'tcp',
>
> > 'encryption' => 'crypt',
> > 'database' => 'mail',
> > 'table' => 'users',
> > 'user_col' => 'login',
> > 'pass_col' => 'password'
> > )
> > );
>
>
> The protocol should be "tcp" if you use network connections, or "unix"
> if you use unix sockets.
>
> > Many thanks in advance for your help!
> > Bye
> > Enza Raspante
>
> --
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
>
> Why get even? Get odd!
>
> --
> Sork mailing list - Join the hunt: http://horde.org/bounties/#sork
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sork-unsubscribe at lists.horde.org
>
More information about the sork
mailing list