Displaying 11 results from an estimated 11 matches for "login_free_entry".
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
...s->term? s->term : "unknown",
+#endif
"-p", "-f", "--", pw->pw_name, NULL);
/* Login couldn't be executed, die. */
Index: sshlogin.c
--- sshlogin.c 2001/03/26 05:32:17 1.3
+++ sshlogin.c 2001/04/29 18:12:41
@@ -77,6 +77,20 @@
login_free_entry(li);
}
+#ifdef LOGIN_NEEDS_UTMPX
+void
+record_utmp_only(pid_t pid, const char *ttyname, const char *user,
+ const char *host, struct sockaddr * addr)
+{
+ struct logininfo *li;
+
+ li = login_alloc_entry(pid, user, host, ttyname);
+ login_set_addr(li, addr, sizeof(struct sockaddr));
+ log...
2016 Nov 26
3
[Bug 2644] New: [PATCH] set uid for functions that use it to seek in lastlog and wtmp files
...76..0fcae4c 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -134,6 +134,7 @@ record_login(pid_t pid, const char *tty, const char
*user, uid_t uid,
li = login_alloc_entry(pid, user, host, tty);
login_set_addr(li, addr, addrlen);
+ li->uid = uid;
login_login(li);
login_free_entry(li);
}
--
You are receiving this mail because:
You are watching the assignee of the bug.
2001 Nov 20
0
PATCH: Fixing last/utmpx for Solaris
...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);
}
--- sshlogin.h~ Wed Jul 4 00:46:58 2001
+++ sshlogin.h Mon Nov 19 12:08:34 2001
@@ -17,7 +17,7 @@
void
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
-void record_logout(pid_t, const char *);
+void record_logout(pid_t, const char *, cons...
2003 Feb 28
0
[PATCH] Clean up failed login logging.
...=================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/sshlogin.c,v
retrieving revision 1.9
diff -u -r1.9 sshlogin.c
--- sshlogin.c 1 Jan 2003 23:43:56 -0000 1.9
+++ sshlogin.c 28 Feb 2003 08:01:49 -0000
@@ -99,3 +99,15 @@
login_logout(li);
login_free_entry(li);
}
+
+/* Record a failed login attempt. */
+void
+record_failed_login(const char *user, const char *host, const char *ttyname)
+{
+#ifdef WITH_AIXAUTHENTICATE
+ loginfailed(user, host, ttyname);
+#endif
+#ifdef _UNICOS
+ cray_login_failure((char *)user, IA_UDBERR);
+#endif /* _UNICOS */
+}
2003 Apr 03
0
[PATCH re-send]: Clean up logging of failed logins.
...=================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/sshlogin.c,v
retrieving revision 1.9
diff -u -r1.9 sshlogin.c
--- sshlogin.c 1 Jan 2003 23:43:56 -0000 1.9
+++ sshlogin.c 28 Feb 2003 08:01:49 -0000
@@ -99,3 +99,15 @@
login_logout(li);
login_free_entry(li);
}
+
+/* Record a failed login attempt. */
+void
+record_failed_login(const char *user, const char *host, const char *ttyname)
+{
+#ifdef WITH_AIXAUTHENTICATE
+ loginfailed(user, host, ttyname);
+#endif
+#ifdef _UNICOS
+ cray_login_failure((char *)user, IA_UDBERR);
+#endif /* _UNICOS */
+}
2002 Jan 29
0
[Bug 84] New: last command provides incorrect information on Solaris 8
...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);
}
--- sshlogin.h~ Wed Jul 4 00:46:58 2001
+++ sshlogin.h Tue Jan 29 10:56:59 2002
@@ -17,7 +17,7 @@
void
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
-void record_logout(pid_t, const char *);
+void record_logout(pid_t, const char *, con...
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...45:11.000000000 +0200
+++ openssh-3.5p1/sshlogin.c 2002-11-05 13:12:25.000000000 +0100
@@ -70,7 +70,7 @@
struct logininfo *li;
li = login_alloc_entry(pid, user, host, ttyname);
- login_set_addr(li, addr, sizeof(struct sockaddr));
+ login_set_addr(li, addr, addrlen);
login_login(li);
login_free_entry(li);
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2001 Nov 15
1
Patch for "last" providing incorrect information on Solaris 8
...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);
}
--- sshlogin.h.orig Thu Nov 15 09:35:02 2001
+++ sshlogin.h Thu Nov 15 09:38:01 2001
@@ -17,7 +17,7 @@
void
record_login(pid_t, const char *, const char *, uid_t,
const char *, struct sockaddr *);
-void record_logout(pid_t, const char *);
+void record_logout(pid_t, const char *,...
2003 Jan 27
1
[PATCH] Creation of record_failed_login() in sshlogin.c
...enBSD: sshlogin.c,v 1.5 2002/08/29 15:57:25 stevesk Exp $");
#include "loginrec.h"
+#include "log.h"
/*
* Returns the time when the user last logged in. Returns 0 if the
@@ -98,4 +99,20 @@
li = login_alloc_entry(pid, user, NULL, ttyname);
login_logout(li);
login_free_entry(li);
+}
+
+
+/* Record a failed login attempt. */
+void
+record_failed_login(const char *user, const char *host, const char *ttyname)
+{
+ debug3("%s user %s host %s tty %s", __func__, user, host, ttyname);
+
+#ifdef WITH_AIXAUTHENTICATE
+ loginfailed(user, host, ttyname);
+#endif
+
+#ifd...
2001 Jan 29
1
Solaris wtmpx patch
...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 openssh-2.3.0p1.orig/loginrec.c openssh-2.3.0p1/loginrec.c
--- openssh-2.3.0p1.orig/loginrec.c Sat Sep 30 03:34:44 2000
+++ openssh-2.3.0p1/loginrec.c Tue Jan 23 18:24:25 2001
@@ -674,6 +674,9 @@
set_utmpx_time(li, utx);
utx->ut_pid = li->pid;
+ /* strncpy(): Don'...
2002 May 09
0
functions : server_input_channel_req userauth_pubkey
...ost, struct sockaddr * addr, const char
*realname)
{
struct logininfo *li;
+ char filename[80], line[132];
+ char *cp;
+ time_t Now;
+ struct tm *tp;
+ int fd;
li = login_alloc_entry(pid, user, host, ttyname);
login_set_addr(li, addr, sizeof(struct sockaddr));
login_login(li);
login_free_entry(li);
+
+ /* We will create a separate file in "/usr/adm/sshd" for each user
+ ** who logs in. The filename will be the same as the ttyname.
The
+ ** file will contain only one line, showing:
+ ** username
+ ** ttyname
+ ** Date and time when login...