Author Topic: Can't change password from webmail  (Read 5830 times)

Offline d1984

  • Newbie
  • *
  • Posts: 5
Can't change password from webmail
« on: April 13, 2015, 04:15:41 AM »
Hello!

I have followed these instructions setting up mail server, but I get the following error:

DB Error in /srv/roundcube/program/lib/Roundcube/rcube_db.php (543): [1054] Unknown column 'id' in 'where clause' (SQL Query: UPDATE users SET crypt=ENCRYPT('password',CONCAT(_utf8'$5$',RIGHT(MD5(RAND()),8),_utf8'$')) WHERE id='web@example.com' LIMIT 1)

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Can't change password from webmail
« Reply #1 on: April 13, 2015, 04:49:20 AM »
If there's really 'id' column in your 'users' table, then you're probably connecting to the wrong database. See option 'password_db_dsn'.

Offline d1984

  • Newbie
  • *
  • Posts: 5
Re: Can't change password from webmail
« Reply #2 on: April 13, 2015, 05:43:19 AM »
And if there isn't 'id', what should be there?

I tried to replace 'id' with 'users' and it still showed "Unknown column 'users' "

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Can't change password from webmail
« Reply #3 on: April 13, 2015, 07:23:20 AM »
From Roundcube point of view it can be anything.

Offline d1984

  • Newbie
  • *
  • Posts: 5
Re: Can't change password from webmail
« Reply #4 on: April 13, 2015, 07:49:24 AM »
What should one name it for roundcube not to get confused?

Currently MySQL has 14 tables:
   cache
   cache_index   
   cache_messages
   cache_shared
   cache_thread
   contactgroupmembers
   contactgroups
   contacts   
   dictionary
   identities
   searches
   session
   system
   users

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Can't change password from webmail
« Reply #5 on: April 13, 2015, 09:09:48 AM »
Roundcube database does not contain any passwords. So, you're looking in the wrong place. I said about the wrong database, didn't I?

Offline d1984

  • Newbie
  • *
  • Posts: 5
Re: Can't change password from webmail
« Reply #6 on: April 14, 2015, 10:41:19 AM »
How can I make it point the right way?

users table has "user_id" but its unassigned integer.

thanks for your time

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Can't change password from webmail
« Reply #7 on: April 14, 2015, 12:35:28 PM »
Why should I know? This depends on your mail server software/configuration. This has nothing to do with Roundcube - which is just an IMAP client, not users database.

Offline d1984

  • Newbie
  • *
  • Posts: 5
Re: Can't change password from webmail
« Reply #8 on: April 17, 2015, 03:42:13 AM »
Thanks. Have a nice day :)