]> andersk Git - openssh.git/blobdiff - loginrec.c
- (dtucker) [Makefile.in auth.c auth.h auth1.c auth2.c loginrec.c monitor.c
[openssh.git] / loginrec.c
index 491b7afb6f0f36f29a12d79f34779edc11bc52ee..f87492a6bbbb670a4e0e1bc3c073de98be1d4e23 100644 (file)
 #include "atomicio.h"
 #include "packet.h"
 #include "canohost.h"
+#include "auth.h"
 
 #ifdef HAVE_UTIL_H
 # include <util.h>
@@ -442,6 +443,12 @@ login_write(struct logininfo *li)
        if (li->type == LTYPE_LOGIN && 
           !sys_auth_record_login(li->username,li->hostname,li->line))
                logit("Writing login record failed for %s", li->username);
+#endif
+#ifdef AUDIT_EVENTS
+       if (li->type == LTYPE_LOGIN)
+               audit_session_open(li->line);
+       else if (li->type == LTYPE_LOGOUT)
+               audit_session_close(li->line);
 #endif
        return (0);
 }
This page took 0.500344 seconds and 4 git commands to generate.