[Dovecot] Ignore app passwords protocol access on SOGo request
This commit is contained in:
@@ -79,7 +79,9 @@ if ($isSOGoRequest) {
|
||||
}
|
||||
}
|
||||
if ($result === false){
|
||||
$result = apppass_login($post['username'], $post['password'], array($post['service'] => true), array(
|
||||
// If it's a SOGo Request, don't check for protocol access
|
||||
$service = (isSOGoRequest) ? false : array($post['service'] => true);
|
||||
$result = apppass_login($post['username'], $post['password'], $service, array(
|
||||
'is_internal' => true,
|
||||
'remote_addr' => $post['real_rip']
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user