Changed Dovecot auth check to use sudo
This commit is contained in:
parent
1cfe20b9b7
commit
abea748129
|
@ -32,7 +32,7 @@ class DovecotPw
|
||||||
$fp = [];
|
$fp = [];
|
||||||
$m = static::$method;
|
$m = static::$method;
|
||||||
$r = static::$rounds;
|
$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"]],
|
[0 => ["pipe","r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"]],
|
||||||
$fp);
|
$fp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user