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 : $!";
|
||||
|
||||
$mesg->code && die $mesg->error;
|
||||
$result->code && die $result->error;
|
||||
$ldap->unbind;
|
||||
|
||||
# $HOME
|
||||
|
|
|
@ -141,12 +141,10 @@ sub add()
|
|||
'webmailActive' => 'TRUE',
|
||||
'authsmtpActive' => 'FALSE',
|
||||
'homeDirectory' => "/home/vmail/$domain/$login/",
|
||||
'amavisSpamTagLevel' => '-1999.0',
|
||||
'amavisSpamTag2Level' => '6.3'
|
||||
]
|
||||
);
|
||||
|
||||
$mesg->code && die $mesg->error;
|
||||
$result->code && die $result->error;
|
||||
$ldap->unbind;
|
||||
|
||||
# HOMEDIR (obsolete ?)
|
||||
|
|
Loading…
Reference in New Issue