Re: Logging usernames/passwords

[email protected] (Paul Jarc) Mon, 03 Jun 2002 12:05:55 -0400
Newsgroups gmane.comp.djb.checkpassword
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
"Andre Fortin" <[email protected]> wrote:
> I'm looking at a way to log usernames/passwords in plain text.  The reason
> for this is that we are moving away from a local passwd database, and have
> no way to copy this DB to the planned format.

You'd have to create a modified checkpassword program for that.  But
instead of printing plaintext, it could print the new-format hash.

Also note that qmail-popup dups descriptor 1 to descriptor 2 before
invoking the checkpassword module.  So for your checkpassword to be
able to write to the log pipe, you'll have to add "exec 3>&2" to the
run script and make your checkpassword write to (and then close, if
you like) descriptor 3.


paul