[horde] Issue with Passwd Module

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Wed Sep 20 09:23:23 PDT 2006


Quoting Laura McCord <mccordl at southwestern.edu>:

BTW, there is a sork specific mailing list for this (sork at lists.horde.org)
which you should be using instead of the Horde mailing list.

> I am using version Passwd: H3 (3.0) and this line is not a comment.

Yes, indeed, but how was I to know that?

> I have been fooling around abit with the code and I am adding print
> statements to detect the problem.

Sounds like you are on the right track.

> We are migrating from our old version of horde/passwd module to the new
> one and the sql code is a little bit different. So, I am trying to see
> if perhaps our version of mysql cannot handle things like $row =
> $result->fetchRow(DB_FETCHMODE_ASSOC);

Sounds like you are on the right track.

> So that is where I am currently at.

You might try using this patch:

--- sql.php.orig        2005-08-23 06:15:06.000000000 -0500
+++ sql.php     2006-09-20 11:21:12.000000000 -0500
@@ -116,6 +123,9 @@
              $result->free();
              if (is_array($row)) {
                  /* Get the password from the database. */
+                if (!isset($row[$this->_params['pass_col']])) {
+                    return PEAR::raiseError(sprintf(_("Password  
column \"%s\" not found in password table."),  
$this->_params['pass_col']));
+                }
                  $current_password = $row[$this->_params['pass_col']];

                  /* Check the passwords match. */

Which should replace your php error with an informative error message
instead (which doesn't solve your problem, but may help in your debugging).

> Thanks,
>  Laura
>
> Eric Jon Rostetter wrote:
>> Quoting Laura McCord <mccordl at southwestern.edu>:
>>
>>> I just installed the Passwd module
>>
>> What version?  (In my version, line 119 is a comment, and hence you must
>> be running a different version).
>>
>>> and I have been trying to configure
>>> it. I am using the sql driver in the backends.php file. I keep getting
>>> a Notice stating "Undefined index: DES in
>>> */srv/www/htdocs/horde/passwd/lib/Driver/sql.php* on line *119".
>>
>> Again, line 119 is a comment in my version, so what version do you have?
>>
>>> *I do
>>> have a column called DES that I am using for the 'pass_col'. I have
>>> been searching this issue on google and came across someone who had the
>>> same issue but there was no resolution.
>>
>> Maybe a typo in your configuration of backends.php?
>>
>>> Any suggestions?
>>>
>>> Thanks,
>>> Laura
>>



-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!


More information about the horde mailing list