Fix some bugs:
- check the success of ldapadd with an incorrect variable name - unknown LDAP attributes added with add-mail-virtual.pl
This commit is contained in:
parent
6942c553fa
commit
a7bf4d2a6c
|
@ -128,7 +128,7 @@ sub add()
|
||||||
]
|
]
|
||||||
) or die "heh : $!";
|
) or die "heh : $!";
|
||||||
|
|
||||||
$mesg->code && die $mesg->error;
|
$result->code && die $result->error;
|
||||||
$ldap->unbind;
|
$ldap->unbind;
|
||||||
|
|
||||||
# $HOME
|
# $HOME
|
||||||
|
|
|
@ -141,12 +141,10 @@ sub add()
|
||||||
'webmailActive' => 'TRUE',
|
'webmailActive' => 'TRUE',
|
||||||
'authsmtpActive' => 'FALSE',
|
'authsmtpActive' => 'FALSE',
|
||||||
'homeDirectory' => "/home/vmail/$domain/$login/",
|
'homeDirectory' => "/home/vmail/$domain/$login/",
|
||||||
'amavisSpamTagLevel' => '-1999.0',
|
|
||||||
'amavisSpamTag2Level' => '6.3'
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$mesg->code && die $mesg->error;
|
$result->code && die $result->error;
|
||||||
$ldap->unbind;
|
$ldap->unbind;
|
||||||
|
|
||||||
# HOMEDIR (obsolete ?)
|
# HOMEDIR (obsolete ?)
|
||||||
|
|
Loading…
Reference in a new issue