tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Bob Sloane <SLOANE () KUHUB ! CC ! UKANS ! EDU>
To: tru64-unix-managers
Subject: Code to create accounts under Enhanced Security
Date: Tue, 31 Dec 1996 22:54:56 +0000	[thread overview]
Message-ID: <96076450422940.tru64-unix-managers.marc@archive.invalid> (raw)

Hi All,

I need to convert some programs we use to create accounts to run under
DU V4.0.  We use Enhanced Security, and it used to be enough to create
the appropriate file under /tcb/file/auth/u/user, but under V4.0, the
new auth.db files require that I use the putprpwnam() routine to write
the protected password database entries. I looked at using convuser to
convert from the /etc/passwd file, but that seems to require putting
the encrypted password in the /etc/passwd file (security problems) and
it also seems to need to have mkpasswd run before it finds the
username (performance problems.)

Does anyone out there have some simple code to show how the data
structures for putprpwnam() should be initialized?  I looked at the
call to getprdfent() but it returns a pr_default structure, and
putprpwnam() needs a pr_passwd structure.  Some sample code might help
me straighten all this out.
-- 
USmail: Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
E-mail: sloane@kuhub.cc.ukans.edu, Phone: (913) 864-0444, FAX: (913) 864-0485

                 reply	other threads:[~1996-12-31 22:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox