search for: use_wtmp

Displaying 10 results from an estimated 10 matches for "use_wtmp".

Did you mean: use_utmp
2000 Jun 12
1
AIX and 2.1.1p1
The new login code works fine with AIX 4.3. Two nits, though. If --disable-lastlog is defined, the code still tries to slog through wtmp to determine the last login time. Is this a bug or a feature? If a feature, change the DISABLE_LASTLOG test below to WITH_AIXAUTHENTICATE. Also, a small typo in configure.in, plus an AIX tweak. --- configure.in.orig Thu Jun 8 21:58:35 2000 +++ configure.in Mon
2002 Apr 22
0
[Bug 224] New: configure.ac changes for crays
...-236,12 +236,29 @@ AC_CHECK_FUNCS(getluid setluid) MANTYPE=man ;; +*-*-unicosmk*) + no_libsocket=1 + no_libnsl=1 + not_sco=1 + MANTYPE=cat + AC_DEFINE(USE_PIPES) + AC_DEFINE(LOGIN_NEEDS_UTMPX) + AC_DEFINE(USE_UTMP) + AC_DEFINE(USE_WTMP) + LDFLAGS="$LDFLAGS -L/usr/local/lib" + LIBS="$LIBS -lshare -lgen -lrsc -luex -lacm" + ;; *-*-unicos*) no_libsocket=1 no_libnsl=1 + not_sco=1 + MANTYPE=cat AC_DEFINE(USE_PIPES) + AC_DEFINE(LOGIN_NEEDS_UTMPX) + A...
2002 Apr 22
0
[Bug 224] configure.ac changes for crays
...-236,12 +236,29 @@ AC_CHECK_FUNCS(getluid setluid) MANTYPE=man ;; +*-*-unicosmk*) + no_libsocket=1 + no_libnsl=1 + not_sco=1 + MANTYPE=cat + AC_DEFINE(USE_PIPES) + AC_DEFINE(LOGIN_NEEDS_UTMPX) + AC_DEFINE(USE_UTMP) + AC_DEFINE(USE_WTMP) + LDFLAGS="$LDFLAGS" + LIBS="$LIBS -lshare -lgen -lrsc -luex -lacm" + ;; *-*-unicos*) no_libsocket=1 no_libnsl=1 + not_sco=1 + MANTYPE=cat AC_DEFINE(USE_PIPES) + AC_DEFINE(LOGIN_NEEDS_UTMPX) + AC_DEFINE(USE_UTMP...
2001 Jun 21
0
Output of last command is strange on Solaris 2.6/8 (OpenSSH 2.9p2)
...pts/2 foo.bar.co.jp Thu Jun 21 11:12 - 15:30 (04:17) ... --- openssh-2.9p2.orig/loginrec.c Wed May 9 05:34:33 2001 +++ openssh-2.9p2/loginrec.c Thu Jun 21 20:23:58 2001 @@ -451,15 +451,19 @@ # ifdef USE_UTMP utmp_write_entry(li); # endif +#ifndef __sun # ifdef USE_WTMP wtmp_write_entry(li); # endif +#endif # ifdef USE_UTMPX utmpx_write_entry(li); # endif +#ifndef __sun # ifdef USE_WTMPX wtmpx_write_entry(li); # endif +#endif return 0; } #endif If there is a right method of this case, please teach it. -- KITAZIMA, Tuneki...
2004 Jul 08
1
openssh 3.8.1p1 problem on SCO 5.0.7
...es are written to /etc/wtmp and /etc/wtmpx each time a user logs in via ssh. This can be demonstrated using the last(C) command. Any user connected via ssh will have two identical login and logout entries. On SCO, login_write() in loginrec.c calls both wtmp_write_entry() and wtmpx_write_entry() (USE_WTMP and USE_WTMPX are defined). wtmp_write_entry() writes the first entry to /etc/wtmp. wtmpx_write_entry() ultimately calls updwtmpx() (HAVE_UPDWTMPX is defined) to write the /etc/wtmpx entry. But updwtmpx() writes entries to both the wtmp and wtmpx files on SCO, so now we have two entries in /etc/wt...
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...+ memcpy(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16); + if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) { + ut->ut_addr_v6[0] = ut->ut_addr_v6[3]; + ut->ut_addr_v6[1] = 0; + ut->ut_addr_v6[2] = 0; + ut->ut_addr_v6[3] = 0; + } + } +# endif } #endif /* USE_UTMP || USE_WTMP || USE_LOGIN */ @@ -689,6 +705,9 @@ void construct_utmpx(struct logininfo *li, struct utmpx *utx) { +# ifdef HAVE_ADDR_V6_IN_UTMP + struct sockaddr_in6 *sa6; +# endif memset(utx, '\0', sizeof(*utx)); # ifdef HAVE_ID_IN_UTMPX line_abbrevname(utx->ut_id, li->line, sizeof(utx-...
2001 Oct 08
2
Porting OpenSSH 2.9.9p2 to Dynix V4.4.4
Hello Porters, I am attempting to compile OpenSSH 2.9.9p2 on a Dynix V4.4.4 host. I have set USE_PIPES and BROKEN_SAVED_UIDS (the latter because there are no functions for set{eu,eg}id() that I can find). I configured with "./configure '--with-libs=-lnsl -lsec'". Each time I attempt to login, I get this error: No utmp entry. You must exec "login" from
2007 Jan 17
0
login_get_lastlog - nss enviornment - works in shell env, doesn't work when sshd calls it.
...ime */ int getlast_entry(struct logininfo *li) { #ifdef USE_LASTLOG return(lastlog_get_entry(li)); #else /* !USE_LASTLOG */ #if defined(DISABLE_LASTLOG) /* On some systems we shouldn't even try to obtain last login * time, e.g. AIX */ return (0); # elif defined(USE_WTMP) && \ (defined(HAVE_TIME_IN_UTMP) || defined(HAVE_TV_IN_UTMP)) /* retrieve last login time from utmp */ return (wtmp_get_entry(li)); # elif defined(USE_WTMPX) && \ (defined(HAVE_TIME_IN_UTMPX) || defined(HAVE_TV_IN_UTMPX)) /* If wtmp isn't availab...
2001 Apr 29
2
PATCH: UseLogin fix for 2.9p1 (w/improved last-login time)
...s2.x) Index: loginrec.c --- loginrec.c 2001/02/22 21:23:21 1.32 +++ loginrec.c 2001/04/29 18:12:40 @@ -443,6 +443,27 @@ return 0; } +#ifdef LOGIN_NEEDS_UTMPX +int +login_utmp_only(struct logininfo *li) +{ + li->type = LTYPE_LOGIN; +# ifdef USE_UTMP + utmp_write_entry(li); +# endif +# ifdef USE_WTMP + wtmp_write_entry(li); +# endif +# ifdef USE_UTMPX + utmpx_write_entry(li); +# endif +# ifdef USE_WTMPX + wtmpx_write_entry(li); +# endif + return 0; +} +#endif + /** ** getlast_entry: Call low-level functions to retrieve the last login ** time. Index: loginrec.h --- loginrec.h...
2013 Feb 26
16
Call for testing: OpenSSH-6.2
Hi, It's that time again... OpenSSH 6.2 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This release contains some substantial new features and a number of bugfixes. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: