From: Steve VanDevender <stevev@hexadecimal.uoregon.edu>
Subject: Re: putting passwords in auth.db
Date: 1996/10/09 [thread overview]
Message-ID: <x7g23n1y1s.fsf@hexadecimal.uoregon.edu> (raw)
In-Reply-To: x7u3sdfbsm.fsf@hexadecimal.uoregon.edu
I've succeded in writing a program that takes more-or-less standard
/etc/passwd and /etc/shadow files and stuffs the passwords into the
protected password database used by Digital UNIX in ENHANCED security
mode, using the getprpwnam() and putprpwnam() functions. It's currently
being tested on one of our Digital UNIX hosts with good results so far;
it accepts /etc/passwd and /etc/shadow from a Solaris host and everyone
we've tried so far is able to log in.
After I've had it running for a while longer and am more confident about
showing it to the world, I should be able to release the code.
The most interesting gotcha is that in ENHANCED security mode, Digital
UNIX treats characters in a password after the 8th as significant,
instead of truncating passwords to 8 characters before encrypting them
for comparison during login. An early version of the program worked for
all but one of the testers, who happened to use a 9-character password.
Fortunately a semi-documented item in the pr_passwd structure,
ufld.fd_oldcrypt, can be used to set which kind of password encryption
you want to use, including the old truncate-to-8-chars-and-crypt()
behavior that is compatible with Solaris (and probably most other
UNIXen). The default in Digital UNIX is apparently to encrypt passwords
in 8-character blocks and store all of the blocks.
next prev parent reply other threads:[~1996-10-09 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-02 4:00 putting passwords in auth.db Steve VanDevender
1996-10-09 4:00 ` Steve VanDevender [this message]
1996-10-09 4:00 ` Todd Aven
1996-10-10 4:00 ` Randy M. Hayman
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