I am using openssh in HP-UX B.11.23 platform.This platform supports utmps/btmps/wtmps structure and related files for login purpose instead of utmp/btmp/wtmp. Since openssh has been written to support utmp struture, it ignores utmps/btmps/wtmps and it's related files. So commands that support utmp/btmp/wtmp database, for example logname,who - [],last,lastb commands, do not work in 11.23 platform. So, Can openssh be enhanced to support utmps/btmps/wtmps ?
It sounds like the same situation as utmpx and friends on some platforms (Solaris?) loginrec is constructed to allow this, but first you ought to see if your platform has native functions to deal with these files (ie the equivalents of endutxent, getutxent, getutxid, getutxline, pututxline, setutxent, utmpxname).
Yes.Platform B.11.23 has native functions such as endutsent, getutsent, getutsid, getutsline, pututsline, setutsent which are equivalents of endutxent, getutxent, getutxid, getutxline, pututxline, setutxent, utmpxname functions.
Could you please attach (ie "create a new attachment" don't paste into the text field) the config.h file created by running ./configure on your HP-UX 11.23 system.
Created attachment 803 [details] config.h file in HP-UX 11.23 config.h file after running configure script is attached
It turns out that HP's HP-UX Secure Shell package (which is based on OpenSSH) has utmps support, and HP kindly ship the source with it. The utmps parts are in loginrec.c which is under the same copyright as the main distribution, so it's probably just a matter of importing those changes and adding the requisite bits to configure.ac. (If someone from HP wants to contact us with the correct details we can add a copyright notice for those bits, but I can't seem to find a contact address in the package).
Mike Huey is the HP contact person for HP-UX secure shell. His mail id is mike.huey@hp.com