Anonymous | Login | 2024-11-22 23:39 EST |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||
0001662 | PacketFence | core | public | 2013-07-08 07:21 | 2013-08-01 08:10 | |||
Reporter | fmts | |||||||
Assigned To | fdurand | |||||||
Priority | normal | Severity | minor | Reproducibility | always | |||
Status | resolved | Resolution | fixed | |||||
Platform | OS | OS Version | ||||||
Product Version | 4.0.1 | |||||||
Target Version | Fixed in Version | |||||||
Summary | 0001662: [Violation] Action "Send email" doesn't get executed if the violation is enabled | |||||||
Description | I created a violation with following settings: -- [4000001] priority=1 trigger=vendormac::2249 actions=autoreg,email,role desc=Testgeraete enabled=Y template=generic auto_enable=N whitelisted_categories=isolation,default,guest target_category=test vclose=4000001 -- The violation gets executed, but the node only gets the status "registred". The role isn't set and a mail doesn't get sent. As you can see in the attached log there is a warning about Perl ("insecure dependency") and the pfcmd command returns an error. Maybe it has something to do with it. If i remove the "email"-Action, the violation works as it should. Also if i set "enabled=N" and trigger it manually it works fine. Even with the "email"-action. | |||||||
Additional Information | System: Debian Wheezy (up to date) Repo: deb http://inverse.ca/downloads/PacketFence/debian-stable [^] wheezy wheezy | |||||||
Tags | No tags attached. | |||||||
fixed in git revision | ||||||||
fixed in mtn revision | ||||||||
Attached Files | violation.txt [^] (4,004 bytes) 2013-07-08 07:21 [Show Content] | |||||||
Notes | |
(0003355) fdurand (administrator) 2013-07-31 20:01 |
Hello, can you edit action.pm and comment the line pfmailer(%message); You will not receive an email but it's just to see if if will have the "Insecure dependency in connect while running with -T switch at /usr/lib/perl/5.14/IO/Socket.pm line 114." error. If it works (if the role is set) it mean that it's the pfmailer function the problem so edit the file util.pm and in the pfmailer sub use the untaint_chain on somes variables like: my $smtpserver = untaint_chain($Config{'alerting'}{'smtpserver'}); .... Regards Fabrice |
(0003363) fmts (reporter) 2013-08-01 07:12 |
Hi Fabrice, As you said, it's a pfmailer issue. With your "untaint_chain"-line it works like a charm. Thanks, Florian |
(0003364) fdurand (administrator) 2013-08-01 08:10 |
Ok thanks, it has been fixed in devel. Fabrice |
Issue History | |||
Date Modified | Username | Field | Change |
2013-07-08 07:21 | fmts | New Issue | |
2013-07-08 07:21 | fmts | File Added: violation.txt | |
2013-07-31 20:01 | fdurand | Note Added: 0003355 | |
2013-08-01 07:12 | fmts | Note Added: 0003363 | |
2013-08-01 08:10 | fdurand | Note Added: 0003364 | |
2013-08-01 08:10 | fdurand | Status | new => resolved |
2013-08-01 08:10 | fdurand | Resolution | open => fixed |
2013-08-01 08:10 | fdurand | Assigned To | => fdurand |
Copyright © 2000 - 2012 MantisBT Group |