Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!turnkey!orchard.la.locus.com!prodnet.la.locus.com!scotte From: scotte@locus.com (Scott Eberline) Newsgroups: comp.unix.i386 Subject: Re: SCO UNIX V/386 Authentication database Summary: call set_auth_parameters() first Message-ID: <14893@oolong.la.locus.com> Date: 8 Aug 90 20:49:27 GMT References: <2291@kiwi.mpr.ca> Organization: Locus Computing Corp, Los Angeles Lines: 23 In article <2291@kiwi.mpr.ca> parker@zaphod.mpr.ca (Ross Parker) writes: >The problem: Every time I try to run even the simplest piece of code >that requires this library, I get the following message: > > Authentication database use not initialized first Try the following: main(argc, argv) int argc; char **argv; { struct pr_passwd *pr; set_auth_parameters(argc, argv); pr = getprpwnam("parker"); } set_auth_parameters() must be called before any of the other routines in identity.o in libprot.a, because they all check for it having been called. -- Scott D. Eberline scotte@locus.com or uunet!lcc!scotte