* using getprpwent(3) with C2?
@ 1998-06-19 1:54 Simon Greaves
0 siblings, 0 replies; only message in thread
From: Simon Greaves @ 1998-06-19 1:54 UTC (permalink / raw)
To: tru64-unix-managers
I'm trying to use getprpw* to get C2 tcb structures. Compiles ok, but I
get:
Authentication database use not initialized first
Hmm.. obviously missing something here, anyone enlighten me?
What I want to do is to write something that will just give me a report
of the last successful login for a given user. According to the manual
page, I should be able to use getprpwnam(username) to return a pointer
to a pr_passwd structure which has all the stuff I want.
Does anyone know if there is a perl module to do this sort of thing?
Sample program:
8<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#include <sys/types.h>
#include <sys/security.h>
#include <prot.h>
void
main(void)
{
struct pr_passwd *prPasswd;
/* try getting an entry by name.. */
prPasswd = getprpwnam("greaves");
}
8<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thanks,
Simon
--
Simon Greaves voice: (+679) 212114
Computer Centre fax: (+679) 304089
The University of the South Pacific email: greaves_s@usp.ac.fj
Suva, Fiji
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-06-19 1:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-19 1:54 using getprpwent(3) with C2? Simon Greaves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox