Allow args to passdb

This commit is contained in:
Daniel Berteaud 2015-01-07 17:01:20 +01:00
parent 0075251890
commit 405eb1157d
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
{
my $greeting = $dovecot{'Greeting'} || 'SME Server IMAP service powered by doveot';
$OUT .= "login_greeting = \"$greeting\"\n";
our $args = $dovecot{PassDBArgs} || '';
}
passdb \{
driver = pam
{ $OUT .= ($args ne '') ? "args = $args\n" : ''; }
\}
{
if (($dovecot{'AdminIsMaster'} || 'disabled') eq 'enabled'){
@ -11,7 +13,7 @@ if (($dovecot{'AdminIsMaster'} || 'disabled') eq 'enabled'){
passdb {
driver = pam
args = dovecotadmin
args = $args dovecotadmin
master = yes
}
auth_master_user_separator = *