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:
Romain Dessort 2013-07-31 10:27:59 +00:00
parent 6942c553fa
commit a7bf4d2a6c
2 changed files with 2 additions and 4 deletions

View File

@ -128,7 +128,7 @@ sub add()
]
) or die "heh : $!";
$mesg->code && die $mesg->error;
$result->code && die $result->error;
$ldap->unbind;
# $HOME

View File

@ -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 ?)