]> granicus.if.org Git - linux-pam/commitdiff
Improved log facilities
authorSebastien Tricaud <toady@gscore.org>
Thu, 31 Mar 2005 00:31:57 +0000 (00:31 +0000)
committerSebastien Tricaud <toady@gscore.org>
Thu, 31 Mar 2005 00:31:57 +0000 (00:31 +0000)
libpam/pam_prelude.c

index baac9d7b621b0e3e79b1302dbcf23bbb2f244856..656376f5efd39ea679c23a4533476c0811c2bf4a 100644 (file)
@@ -11,6 +11,7 @@
 #ifdef PRELUDE
 
 #include <libprelude/prelude.h>
+#include <libprelude/prelude-log.h>
 #include <libprelude/idmef-message-print.h>
 
 #include "pam_prelude.h"
@@ -262,6 +263,8 @@ prelude_send_alert(pam_handle_t *pamh, int authval)
 
         int ret;
 
+        prelude_log_set_flags(PRELUDE_LOG_FLAGS_SYSLOG);
+
         ret = pam_alert_prelude_init(pamh, authval);
         if ( ret < 0 )
                 _pam_log(LOG_WARNING,