*** prelude-correlator.orig/PreludeCorrelator/main.py Tue Mar 9 12:56:59 2010 --- prelude-correlator/PreludeCorrelator/main.py Fri Jan 21 13:25:28 2011 *************** *** 59,65 **** class PreludeClient: ! def __init__(self, env, print_input=None, print_output=None, dry_run=False): self._env = env self._events_processed = 0 self._alert_generated = 0 --- 59,65 ---- class PreludeClient: ! def __init__(self, env, print_input=None, print_output=None, dry_run=False,config="prelude-correlator.conf"): self._env = env self._events_processed = 0 self._alert_generated = 0 *************** *** 71,76 **** --- 71,79 ---- self._client = ClientEasy("prelude-correlator", ClientEasy.PERMISSION_IDMEF_READ|ClientEasy.PERMISSION_IDMEF_WRITE, "Prelude-Correlator", "Correlator", "PreludeIDS Technologies", VERSION) + # -- patch to pass config file path to client. + self._client.SetConfigFilename(config) + # end patch -- self._client.Start() *************** *** 165,171 **** if options.pidfile: open(options.pidfile, "w").write(str(os.getpid())) ! env.prelude_client = PreludeClient(env, print_input=ifd, print_output=ofd, dry_run=options.dry_run) idmef.set_prelude_client(env.prelude_client) SignalHandler(env) --- 168,174 ---- if options.pidfile: open(options.pidfile, "w").write(str(os.getpid())) ! env.prelude_client = PreludeClient(env, print_input=ifd, print_output=ofd, dry_run=options.dry_run, config=options.config) idmef.set_prelude_client(env.prelude_client) SignalHandler(env) *** prelude-correlator.orig/prelude-correlator.conf Mon Jan 25 15:34:09 2010 --- prelude-correlator/prelude-correlator.conf Fri Jan 21 12:56:12 2011 *************** *** 1,3 **** --- 1,9 ---- + ################################################ + ## Configuration for the Prelude Correlator ## + ################################################ + [general] + include = /etc/prelude/default/idmef-client.conf + # This is a template configuration file for prelude-correlator # # [BruteForcePlugin]