Author Topic: Probleme mit dem Password-Plugin  (Read 10804 times)

Offline Sandra Kaimraptor

  • Newbie
  • *
  • Posts: 1
Probleme mit dem Password-Plugin
« on: July 23, 2019, 07:03:19 PM »
Guten Morgen,

Ich versuche seit Tagen das Passwortplugin zum Laufen zu bringen, vergeblich. Zur Vereinfachung habe ich mal die Kommentare entfernt, sowie alles entfernt, was ich nicht verwende...

Code: [Select]
<?php
$config
['password_driver'] = 'sql';
$config['password_confirm_current'] = true;
$config['password_minimum_length'] = 0;
$config['password_require_nonalpha'] = false;
$config['password_log'] = false;
$config['password_login_exceptions'] = null;
$config['password_hosts'] = null;
$config['password_force_save'] = false;
$config['password_force_new_user'] = false;
$config['password_algorithm'] = 'dovecot';
$config['password_algorithm_prefix'] = '{SHA512-CRYPT}';
$config['password_dovecotpw'] = '/usr/local/sbin/doveadm pw'// for dovecot-2.x
// $config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw'; // for dovecot-1.x
$config['password_dovecotpw_method'] = 'SHA512-CRYPT';
$config['password_dovecotpw_with_method'] = true;
$config['password_blowfish_cost'] = 12;
//$config['password_crypt_rounds'] = 50000;
$config['password_disabled'] = false;
$config['password_db_dsn'] = '';
//$config['password_query'] = 'SELECT update_passwd(%c, %u)';
$config['password_query'] = "UPDATE accounts SET password = %c WHERE username = %u";// AND domain = %d AND password = %O";
$config['password_crypt_hash'] = 'sha512';
$config['password_idn_ascii'] = false;
$config['password_hash_algorithm'] = 'sha1';
$config['password_hash_base64'] = false;
... (
Alles weiter unten habe ich nicht angefummelt und benötige ich auch alles nicht)

%c möchte ich schon mal nicht verwenden, weil der Prefix schonmal nicht übernommen wird. %P und %O kann ich nicht verwenden, weil die "Verschlüsselungstechnik fehlt"...wo auch immer die fehlen sollte...

Ich habe mich stets an dem Errorlog, welches mir Roundcube bereitstellt orientiert...doch nun wird nicht mal mehr ein Fehler geloggt...das Passwort kann einfach nur nicht mehr geändert werden...

Verwendetes System: Arch Linux

Offline quisi

  • Newbie
  • *
  • Posts: 2
Re: Probleme mit dem Password-Plugin
« Reply #1 on: February 17, 2022, 10:54:54 PM »
Better late than never...

solved due right path of 'doveadm'..

Code: [Select]
$config['password_driver'] = 'sql';
$config['password_confirm_current'] = true;
$config['password_hosts'] = null;
$config['password_algorithm'] = 'dovecot';
$config['password_algorithm_prefix'] = '{SHA512-CRYPT}';

$config['password_dovecotpw'] = '/usr/bin/doveadm pw'; // for dovecot-2.x, <-- THIS PATH WAS MY PROBLEM

$config['password_dovecotpw_method'] = 'SHA512-CRYPT';
$config['password_dovecotpw_with_method'] = true;
$config['password_db_dsn'] = 'mysql://{USERNAME}:{PASSWORD}@{SQLSERVERIP}/{DBNAME}'; // <-- ADJUST TO YOUR SQL SERVER
$config['password_query'] = 'UPDATE mailbox SET password = %P, modified=now() WHERE username = %u LIMIT 1';

Greetings, quisi