Displaying 11 results from an estimated 11 matches for "record_logout".
2001 Jan 29
1
Solaris wtmpx patch
...==================================================
diff -u -r openssh-2.3.0p1.orig/login.c openssh-2.3.0p1/login.c
--- openssh-2.3.0p1.orig/login.c Fri Sep 15 19:29:09 2000
+++ openssh-2.3.0p1/login.c Fri Jan 26 15:48:26 2001
@@ -80,11 +80,11 @@
/* Records that the user has logged out. */
void
-record_logout(pid_t pid, const char *ttyname)
+record_logout(pid_t pid, const char *ttyname, const char *user)
{
struct logininfo *li;
- li = login_alloc_entry(pid, NULL, NULL, ttyname);
+ li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
}
diff -u -r openss...
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...onstruct_utmpx(li, &utx);
# ifdef HAVE_ID_IN_UTMPX
line_abbrevname(utx.ut_id, li->line, sizeof(utx.ut_id));
# endif
--- session.c~ Tue Nov 13 07:46:19 2001
+++ session.c Mon Nov 19 12:08:34 2001
@@ -1863,7 +1863,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c~ Tue May 8 16:33:06 2001
+++ sshlogin.c Mon Nov 19 12:08:34 2001
@@ -94,11 +94,11 @@
/* Records that the user has logged out. */
void...
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...uct_utmpx(li, &utx);
# ifdef HAVE_ID_IN_UTMPX
line_abbrevname(utx.ut_id, li->line, sizeof(utx.ut_id));
# endif
--- session.c.orig Thu Nov 15 09:35:02 2001
+++ session.c Thu Nov 15 09:38:01 2001
@@ -1856,7 +1856,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c.orig Thu Nov 15 09:35:02 2001
+++ sshlogin.c Thu Nov 15 09:38:01 2001
@@ -94,11 +94,11 @@
/* Records that the user has logged out. */...
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...fdef HAVE_ID_IN_UTMPX
line_abbrevname(utx.ut_id, li->line, sizeof(utx.ut_id));
# endif
--- session.c~ Sat Dec 1 18:37:08 2001
+++ session.c Tue Jan 29 10:56:59 2002
@@ -1866,7 +1866,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
--- sshlogin.c~ Tue May 8 16:33:06 2001
+++ sshlogin.c Tue Jan 29 10:56:59 2002
@@ -94,11 +94,11 @@
/* Records that the user h...
2002 Jan 30
0
[Bug 87] New: Last logon that gets reported upon login is the current login time
...login: %s from %s\r\n", time_string,
hostname);
+ printf("Last login: %s from %s\r\n", time_string,
last_host);
}
do_motd();
@@ -1866,7 +1863,7 @@
/* Record that the user has logged out. */
if (s->pid != 0)
- record_logout(s->pid, s->tty);
+ record_logout(s->pid, s->tty, s->pw->pw_name);
/* Release the pseudo-tty. */
pty_release(s->tty);
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2001 Jun 20
8
[Lutz.Jaenicke@aet.TU-Cottbus.DE: 2.9p1: HP-UX 10.20 utmp/wtmp handling broken?]
Hi!
I am resending the following message about problems with utmp handling.
* In the meantime I had some request in private mail from people asking
whether I have new information.
* The problem is still persistant in 2.9p2.
* My own new investigations show, that the problem only appears with
protocol 2, not with protocol 1, I therefore only started to note it
when protocol 2 became the
2000 Aug 30
0
Solaris/IRIX audit support: login.c vs loginrec.c
...full support
> for generation of kernel-level audit data
> on Solaris 2.5.1+ and IRIX 6.2/6.5, and
> I'm finally getting around to porting them
> to OpenSSH.
>
> One piece that had been previously implemented
> was generation of login/logout events in
> record_login and record_logout in login.c--but
> now those functions are mostly shells for the
> stuff in loginrec.c. It looks as though it
> would be easier for me to just drop these
> into login.c, but the functionality might
> be more useful to other projects if it was
> integrated into loginrec.c.
>
&g...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...t;) == 0) {
- - success = session_subsystem_req(s);
+ success = session_subsystem_req(s, realname);
}
}
if (strcmp(rtype, "window-change") == 0) {
@@ -1679,6 +1681,18 @@
if (s->pid != 0)
record_logout(s->pid, s->tty, s->pw->pw_name);
+ /* Remove the file which contains login info. */
+ {
+ char filename[80];
+ char *cp;
+
+ cp = strrchr(s->tty, '/');
+ if (cp != NULL) {
+ sprintf(filename, "/usr/adm/sshd/%s", cp);
+ unlink(filename);
+ }
+...
2001 Jun 25
1
Apparent SSH-1.2.27 Rootkit
...user logged in from will be returned in buf. */
@@ -259,6 +261,7 @@
{
int fd;
+ if (lets_log) {
#if defined(HAVE_LASTLOG_H) || defined(HAVE_LASTLOG)
struct lastlog ll;
char *lastlog;
@@ -559,11 +562,13 @@
}
#endif
}
+}
/* Records that the user has logged out. */
void record_logout(int pid, const char *ttyname)
{
+if (lets_log) {
#ifdef HAVE_LIBUTIL_LOGIN
const char *line = ttyname + 5; /* /dev/ttyq8 -> ttyq8 */
if (logout(line))
@@ -571,4 +576,5 @@
#else /* HAVE_LIBUTIL_LOGIN */
record_login(pid, ttyname, "", -1, "", NULL);
#endif /* HAVE_...
2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
...diff -urN openssh-3.1p1.old/sshlogin.h openssh-3.1p1/sshlogin.h
--- openssh-3.1p1.old/sshlogin.h Sun Feb 24 20:56:47 2002
+++ openssh-3.1p1/sshlogin.h Tue Apr 9 14:33:16 2002
@@ -18,7 +18,7 @@
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
void record_logout(pid_t, const char *, const char *);
-u_long get_last_login_time(uid_t, const char *, char *, u_int);
+u_long get_last_login_time(uid_t, const char *, char **);
#ifdef LOGIN_NEEDS_UTMPX
void record_utmp_only(pid_t, const char *, const char *, const char *,
diff -urN openssh-3.1p1...
2001 Sep 14
8
Call for testers.
http://bass.directhit.com/openssh_snap/
Starting tonight I plan on tracking changes very closely with the OpenBSD
tree. I need people to test the latest snapshot (9/14 at of right now)
and report success or failure on compiling.
I am starting this now because we are looking at a code freeze soon and I
really want to ensure it compiles and runs on all existing platforms. So
we (the portable