Add %w to cache_key (dovecot's passdb args)

This way, concurrent SOGo sessions using different PT can work
This commit is contained in:
Daniel Berteaud 2015-02-17 16:48:33 +01:00
parent 5b34ddb128
commit 085c1ac457
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
cache_key=%n%r%l
cache_key=%n%r%l%w

View File

@ -0,0 +1,8 @@
{
# Add the plaintext password to the cache key so concurrent sessions
# from SOGo, using different CAS PT can work
my $args = $DB->get_prop('dovecot', 'PassDBArgs');
if ($args && $args eq 'cache_key=%n%r%l'){
$DB->set_prop('dovecot', 'PassDBArgs', 'cache_key=%n%r%l%w');
}
}