Project

General

Profile

Bug #640

SMTP plugin error

Added by Antoine LUONG over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
10/28/2015
Due date:
% Done:

0%

Resolution:

Description

Thierno DIOP wrote:

Hi,

My prelude-manager worked well. And today he stopped and displays the folloxing error:

prelude-manager: symbol lookup error: /usr/lib64/prelude-manager/reports/smtp.so: undefined symbol: preludedb_result_idents_get_next.

Someone can help me please.

NB: Prelude is started in debug mode.

Regards

History

#1 Updated by Antoine LUONG over 8 years ago

Hello,

Could you please attach here the [smtp] section of the /etc/prelude-manager/prelude-manager.conf file, and the corresponding e-mail template if you use one?

Thank you.

#2 Updated by Thierno DIOP over 8 years ago

Hello,

[smtp=test]
sender = 
recipients =
smtp-server = smtp.xxxxxx.fr
subject = Alert: $alert.classification.text
template = /etc/prelude-manager/smtp-template/mail.template1
dbtype = mysql
dbname = prelude
dbuser = xxxxx
dbpass = ***
dbhost = localhost
correlated-alert-template = /etc/prelude-manager/smtp-template/mail.template1

#3 Updated by Antoine LUONG over 8 years ago

Please attach the /etc/prelude-manager/smtp-template/mail.template1 file too to help us reproduce the error.

Thank you.

#4 Updated by Thierno DIOP over 8 years ago


#5 Updated by Antoine LUONG over 8 years ago

Hello,

Please consider applying this patch to the prelude-manager source tree:

diff --git a/plugins/reports/smtp/smtp.c b/plugins/reports/smtp/smtp.c
index 5710ffb..c72c641 100644
--- a/plugins/reports/smtp/smtp.c
+++ b/plugins/reports/smtp/smtp.c
@@ -462,6 +462,7 @@ static int retrieve_from_db(smtp_plugin_t *plugin, const char *criteria_str)
         prelude_string_t *str;
         preludedb_result_idents_t *results;
         prelude_list_t clist, *tmp, *bkp;
+        unsigned int ident_idx = 0;

         ret = idmef_criteria_new_from_string(&criteria, criteria_str);
         if ( ret < 0 ) {
@@ -482,7 +483,7 @@ static int retrieve_from_db(smtp_plugin_t *plugin, const char *criteria_str)
         send_correlation_alert_notice(plugin, ret);
         prelude_list_init(&clist);

-        while ( preludedb_result_idents_get_next(results, &dbident) ) {
+        while ( preludedb_result_idents_get(results, ident_idx++, &dbident) ) {
                 ret = preludedb_get_alert(plugin->db, dbident, &idmef);
                 if ( ret < 0 ) {
                         prelude_log(PRELUDE_LOG_ERR, "failure retrieving message ident %" PRELUDE_PRIu64 ".\n", dbident);

Regards

#6 Updated by Thomas ANDREJAK about 8 years ago

  • Status changed from Assigned to Closed
  • Target version set to Prelude OSS 3.0.0

Fixed in next release

Also available in: Atom PDF