Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Froxlor / Roundcube Passwort ändern

Featured Replies

Log-Einträge von roundcube? Irgendwas hilfreiches?

  • Author

==> errors.log <==
[12-Dec-2023 12:07:59 +0000]: <n7rq34rc> DB Error: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB s                                                       erver version for the right syntax to use near '%c WHERE `username` = 'info@XXX.com'' at line 1 (SQL Query: UPDATE `mail_users` SET `password                                                       _enc` = %c WHERE `username` = 'info@XXX.com') in /var/customers/webs/webmailer/program/lib/Roundcube/rcube_db.php on line 567 (POST /?_task=s                                                       ettings&_action=plugin.password-save)
 

 

In der config:

 

// Froxlor:
// If you do not want to have plaintext-passwords in your database (AND you know what
// it means to turn this off, remove "`password` = %p," from the query.
//
$config['password_query'] = 'UPDATE `mail_users` SET `password_enc` = %c WHERE `username` = %u';

// By default the crypt() function which is used to create the '%c'
// parameter uses the md5 algorithm. To use different algorithms
// you can choose between: des, md5, blowfish, sha256, sha512.
// Before using other hash functions than des or md5 please make sure
// your operating system supports the other hash functions.
$config['password_crypt_hash'] = 'sha256';

// By default domains in variables are using unicode.
// Enable this option to use punycoded names
$config['password_idn_ascii'] = false;

Looks like they've changed the replacers.

// The SQL query used to change the password.
// The query can contain the following macros that will be expanded as follows:
//      %p is replaced with the plaintext new password
//      %P is replaced with the crypted/hashed new password
//         according to configured password_algorithm
//      %o is replaced with the old (current) password
//      %O is replaced with the crypted/hashed old (current) password
//         according to configured password_algorithm
//      %h is replaced with the imap host (from the session info)
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part of the username
//         (in case the username is an email address)
//      %d is replaced with the domain part of the username
//         (in case the username is an email address)

So you'd have to use %P instead of %c

  • Author

Dann kommt Fehler 600:

 

[12-Dec-2023 12:18:54 +0000]: <n7rq34rc> PHP Error: Password plugin: Hash method not supported. in /var/customers/webs/webmailer/plugins/password/password.php on line 787 (POST /?_task=settings&_action=plugin.password-save)
[12-Dec-2023 12:20:41 +0000]: <n7rq34rc> PHP Error: Password plugin: Hash method not supported. in /var/customers/webs/webmailer/plugins/password/password.php on line 787 (POST /?_task=settings&_action=plugin.password-save)
 

 

In der DB sieht es so für das Passwort aus:

 

{BLF-CRYPT}$2y$10$c5n2r5TJZ10Ughfh0LcJz.L ....

welche hash methode hast du denn in der config für $config['password_algorithm'] angegeben?

  • Author

die config Zeile war nicht da. Ich habe das jetzt mit blowfish gemacht.

 

In der DB ist das Passwort jetzt so: $2y$12$1jeiKJv0EAQdgVaAS5kO

Und Anmelden geht nicht mehr.

  • Author

Habe ich. Gleiches Problem. Setze ich das Passwort händisch über froxlor steht da: 

{BLF-CRYPT}$2y$10$niy3z/XiCf1ZeFJnlSV6oOdl.HFN

 

nach dem Plugin

$2y$10$niy3z/XiCf1ZeFJn

 

Und: wieder kein login

Edited by Anachon
Fehler

logs vom dovecot/postfix? Welches OS? 

When setting passwords via froxlor ,they should be prefixed with the hash-algorithm, e.g. 

{ARGON2ID}$argon2id$v=19$m=65536,t=4,p=1$.....

or 

{SHA256-CRYPT}$5$jUc6fv4qb.....

or similar

  • Author

Ubuntu 22.04.

 

Log von roundcube [12-Dec-2023 12:37:43 +0000]: <tfoftrd8> IMAP Error: Login failed for info@XXX.com against localhost from cccccccccccc. AUTHENTICATE PLAIN: Authentication failed. in /var/customers/webs/webmailer/program/lib/Roundcube/rcube_imap.php on line 211 (POST /?_task=login&_action=login)

nicht roundcube log, mail.log von deinem OS...dovecot/postfix ...

24 minutes ago, d00p said:

welche hash methode hast du denn in der config für $config['password_algorithm'] angegeben?

das ist auch immernoch relevant...wenn ich mir den plugin code anschaue setzt er die prefixe genau wie froxlor wenn entsprechender Algorithmus angegeben ist...

  • Author

Lösung, dank deiner Hilfe!

$config['password_algorithm'] = 'blowfish-crypt';

// Additional options for password hashing function(s).
// For password_hash()-based passwords see https://www.php.net/manual/en/function.password-hash.php
// It can be used to set the Blowfish algorithm cost, e.g. ['cost' => 12]
$config['password_algorithm_options'] = [];

// Password prefix (e.g. {CRYPT}, {SHA}) for passwords generated
// using password_algorithm above. Default: empty.
$config['password_algorithm_prefix'] = '{BLF-CRYPT}';
 

Das unten musste zwingend rein!

  • Author

Dir ein dickes Danke!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.