Allow args to passdb

tags/0.1.6_el5 0.1.6_el5
Daniel Berteaud 9 years ago
parent 0075251890
commit 405eb1157d
  1. 4
      root/etc/e-smith/templates/etc/dovecot/dovecot.conf/15auth

@ -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 = *

Loading…
Cancel
Save