Roundcube Community Forum

Release Support => Pending Issues => Topic started by: d1984 on April 13, 2015, 04:15:41 AM

Title: Can't change password from webmail
Post by: d1984 on April 13, 2015, 04:15:41 AM
Hello!

I have followed these instructions setting up mail server, (http://serverfault.com/questions/575389/howto-setup-roundcube-password-plugin-with-sql-driver-and-mysql-encrypt-using-ra) 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='[email protected]' LIMIT 1)
Title: Re: Can't change password from webmail
Post by: alec 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'.
Title: Re: Can't change password from webmail
Post by: d1984 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' "
Title: Re: Can't change password from webmail
Post by: alec on April 13, 2015, 07:23:20 AM
From Roundcube point of view it can be anything.
Title: Re: Can't change password from webmail
Post by: d1984 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
Title: Re: Can't change password from webmail
Post by: alec 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?
Title: Re: Can't change password from webmail
Post by: d1984 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
Title: Re: Can't change password from webmail
Post by: alec 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.
Title: Re: Can't change password from webmail
Post by: d1984 on April 17, 2015, 03:42:13 AM
Thanks. Have a nice day :)