6.0.0-beta1
9/24/25

[#1333] Changing password fails with DB: Error
Summary Changing password fails with DB: Error
Queue Passwd
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners Horde Developers (at) , eric.rostetter (at) physics (dot) utexas (dot) edu
Requester mrubinsk (at) horde (dot) org
Created 02/08/2005 (7533 days ago)
Due
Updated 02/27/2005 (7514 days ago)
Assigned 02/16/2005 (7525 days ago)
Resolved 02/27/2005 (7514 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/27/2005 02:50:22 AM Chuck Hagenbuch Comment #5
State ⇒ Resolved
Reply to this comment
Fixed. Duplicate of #1428, but this has better analysis.
02/16/2005 10:14:11 AM Jan Schneider State ⇒ Assigned
 
02/12/2005 04:21:04 AM Michael Rubinsky Comment #4
State ⇒ Feedback
New Attachment: passwd.patch Download
Reply to this comment
This patch should fix this issue.  $userid was not being correctly set 
from the form field when $conf['user']['change'] == true
02/08/2005 06:38:57 PM Jan Schneider Assigned to Eric Rostetter
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
02/08/2005 06:30:09 PM mike (at) theupstairsroom (dot) com Comment #3 Reply to this comment
In passwd/config/backends.php:



$backends['sql'] = array (

     'name' => 'Horde Authentication',

     'preferred' => '',

     'password policy' => array(

         'minLength' => 3,

         'maxLength' => 8,

         'maxSpace' => 0,

         'minUpper' => 0,

         'minLower' => 1,

         'minNumeric' => 1,

         'minSymbols' => 0

     ),

     'driver' => 'sql',

     'params' => array(

         'phptype'    => 'mysql',

         'hostspec'   => 'localhost',

         'username'   => 'horde',

         'password'   => 'real_password',

         'encryption' => 'md5-hex',

         'database'   => 'horde',

         'table'      => 'horde_users',

         'user_col'   => 'user_uid',

         'pass_col'   => 'user_pass',

         'show_encryption' => false

     )

);



Log:



Feb 08 13:19:17 HORDE [debug] [passwd] SQL Query by 
Passwd_Driver_sql::_lookup(): SELECT user_pass FROM horde_users WHERE 
user_uid = NULL [on line 103 of 
"/home/www/html/horde/passwd/lib/Driver/sql.php"]



To clarify, the error I get is 'User not found' - the username is 
typed into the username field. ..again, if I select not to allow the 
username field to show, this works fine.
02/08/2005 06:13:02 PM Jan Schneider Comment #2
Queue ⇒ Passwd
State ⇒ Feedback
Version ⇒ HEAD
Reply to this comment
Please provide the configuration for your backend and the complete 
error message from the log (without the password).
02/08/2005 05:59:43 PM Michael Rubinsky Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Changing password fails with DB: Error
Queue ⇒
State ⇒ Unconfirmed
Reply to this comment
I'm using sql backend for horde authentication.  When I try to change 
password using  the passwd module I get a  a DB Error: Syntax error.   
The logs show that the sql statement is using a 'null' value for 
user_id no matter what is typed into the username field.  If I change 
the config so that the username field is not visible it works fine.

Saved Queries