Changed Dovecot auth check to use sudo

This commit is contained in:
pmkuipers 2020-05-23 22:56:20 +02:00
parent 1cfe20b9b7
commit abea748129

View File

@ -32,7 +32,7 @@ class DovecotPw
$fp = [];
$m = static::$method;
$r = static::$rounds;
$proc = proc_open( "'/usr/bin/doveadm' 'auth' 'test' '-x' 'service=imap' '{$user}'",
$proc = proc_open( "'sudo' '/usr/bin/doveadm' 'auth' 'test' '-x' 'service=imap' '{$user}'",
[0 => ["pipe","r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"]],
$fp);