Bug 979 - Openssh doesn't support UTMPS/BTMPS/WTMPS database
Summary: Openssh doesn't support UTMPS/BTMPS/WTMPS database
Status: ASSIGNED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 3.9p1
Hardware: Other HP-UX
: P5 enhancement
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 17:35 AEDT by Ponraj
Modified: 2005-04-26 16:19 AEST (History)
1 user (show)

See Also:


Attachments
config.h file in HP-UX 11.23 (32.28 KB, text/plain)
2005-02-04 01:13 AEDT, Ponraj
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ponraj 2005-02-03 17:35:49 AEDT
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 ?
Comment 1 Darren Tucker 2005-02-03 22:13:10 AEDT
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).
Comment 2 Ponraj 2005-02-03 23:33:13 AEDT
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.
Comment 3 Darren Tucker 2005-02-03 23:39:47 AEDT
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.
Comment 4 Ponraj 2005-02-04 01:13:32 AEDT
Created attachment 803 [details]
config.h file in HP-UX 11.23

config.h file after running configure script is attached
Comment 5 Darren Tucker 2005-04-24 10:23:32 AEST
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).
Comment 6 Logu 2005-04-26 16:19:48 AEST
Mike Huey is the HP contact person for HP-UX secure shell. His mail id is
mike.huey@hp.com