]> git.proxmox.com Git - pmg-api.git/commitdiff
use new helper new_from_ldap_cfg()
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Feb 2017 10:57:14 +0000 (11:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Feb 2017 10:57:14 +0000 (11:57 +0100)
bin/pmg-smtp-filter

index 5a69c0471996139afec02a4402725de485cfd229..1dd6d6a703e1c622e1d229ca15e9a290418df9e7 100755 (executable)
@@ -35,6 +35,7 @@ use PMG::RuleDB;
 use PMG::RuleCache;
 use PMG::ModGroup;
 use PMG::AtomicFile;
+use PMG::LDAPConfig;
 use PMG::LDAPSet;
 use PMG::Config;
 use PMG::MailQueue;
@@ -388,7 +389,8 @@ sub load_config {
     }
 
     # create LDAP object
-    $self->{ldap} = PMG::LDAPSet->new_from_pmg_cfg($self->{pmg_cfg}, 1);
+    my $ldapconf = PVE::INotify::read_file('pmg-ldap.conf');
+    $self->{ldap} = PMG::LDAPSet->new_from_ldap_cfg($ldapconf, 1);
 
     $self->{reload_config} = 0;
 }