From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076450422940.tru64-unix-managers.marc@archive.invalid> From: Bob Sloane Date: Tue, 31 Dec 1996 22:54:56 +0000 To: tru64-unix-managers Subject: Code to create accounts under Enhanced Security X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076450422940 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