search for: login_get_lastlog

Displaying 9 results from an estimated 9 matches for "login_get_lastlog".

2007 Jan 17
0
login_get_lastlog - nss enviornment - works in shell env, doesn't work when sshd calls it.
...g found, I've decided to do some coding... C isn't my strong side, I can read(and understand) code, but I can't write good C apps....just a hacks. I've researched and exracted the function that appears in the logs: $>tail /var/log/message Jan 16 23:59:01 user sshd[74154]: fatal: login_get_lastlog: Cannot find account for uid 1010 Jan 16 23:59:01 user sshd[74148]: fatal: login_init_entry: Cannot find user "test" (the login_init_entry is there because I've turned on PrintLastLog yes before that it wasn't showing. I've found a similar problem with nss_ldap in this list...
2008 Oct 08
0
FW: LDAP Problem
...cat /etc/nsswitch.conf group: pgsql files passwd: pgsql files .... but it'd be a good idea to compile add the ncsd (nis caching daemon). then the file will look like this group: cache files pgsql etc... as far as I looked at the code I think the problem is that there is no failback when doing login_get_lastlog on other nis records but I've found solution for me and I prefer not to patch the code (hope it gets in stable releases sooner or later) cheers, valqk. Gigliotti, Joseph wrote: > Hi Anton, saw your post "login_get_lastlog - nss enviornment - works in > shell env, doesn't work&...
2003 Jun 17
2
Can only ssh as root
I have an AIX 4.3.3.10 Box running Openssh 3.4. I am using Putty to get to this Ssh server. All is good when I Ssh in using root. But when I try another user profile I get the below: Jun 16 17:22:21 walker sshd[8812]: fatal: login_get_lastlog: Cannot find account for uid 95 In addition, I am kicked out of this session right now. TIA!
2009 May 03
0
Server option PrintLastLog does not work on AIX
Hi Apparently, the server option "PrintLastLog" does not work on AIX. The last login time is always displayed, disregarding the option. When browsing the code, I found out there are several functions in loginrec.c which solely handle the processing of the last login info (login_get_lastlog, getlast_entry). Since AIX does not provide such a function natively, the configure script sets the DISABLE_LASTLOG define. A small code snippet from getlast_entry in loginrec.c shows this #if defined(DISABLE_LASTLOG) /* On some systems we shouldn't even try to obtain last login...
2014 Dec 28
2
Compiling a static openssh server
...aries from the glibc version used for linking sshd.o: In function `main': /home/john/Downloads/openssh-6.6p1/sshd.c:1666: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking loginrec.o: In function `login_get_lastlog': /home/john/Downloads/openssh-6.6p1/loginrec.c:308: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshd.o: In function `main': /home/john/Downloads/openssh-6.6p1/sshd.c:1677: warning: Usin...
2012 Mar 06
6
openssh static build - mission impossible?
...ries from the glibc version used for linking sshd.o: In function `main': /builddir/build/BUILD/openssh-5.6p1/sshd.c:1545: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking loginrec.o: In function `login_get_lastlog': /builddir/build/BUILD/openssh-5.6p1/loginrec.c:312: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking sshd.o: In function `main': /builddir/build/BUILD/openssh-5.6p1/sshd.c:1555: warning: Us...
2005 Nov 17
3
4.2 and the 'last' command
...ds around a minute while 'last' pegs the system resources. My question: I can't find in the source where 'last' is explicitly called, so is there an API call that was added between these versions that would refer the system to 'last'? I've noticed a function 'login_get_lastlog' that seems to get the information with it's own algo, but I didn't see an option in the config to turn that on. I only found the option to turn last log information completely off, and unfortunately that's not an option. Anybody have any other ideas on where to go to find where...
2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
...ssh-3.1p1/sshlogin.c --- openssh-3.1p1.old/sshlogin.c Sun Feb 24 20:56:47 2002 +++ openssh-3.1p1/sshlogin.c Tue Apr 9 20:57:38 2002 @@ -51,12 +51,12 @@ u_long get_last_login_time(uid_t uid, const char *logname, - char *buf, u_int bufsize) + char **buf) { struct logininfo li; login_get_lastlog(&li, uid); - strlcpy(buf, li.hostname, bufsize); + *buf = xstrdup(li.hostname); return li.tv_sec; } 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 +1...
2009 May 03
10
[Bug 1595] New: Server option PrintLastLog does not work on AIX
...) auth.c patch Hi Apparently, the server option "PrintLastLog" does not work on AIX. The last login time is always displayed, disregarding the option. When browsing the code, I found out there are several functions in loginrec.c which solely handle the processing of the last login info (login_get_lastlog, getlast_entry). Since AIX does not provide such a function natively, the configure script sets the DISABLE_LASTLOG define. A small code snippet from getlast_entry in loginrec.c shows this #if defined(DISABLE_LASTLOG) /* On some systems we shouldn't even try to obtain last login...