postgresql/src/bin/psql
Marc G. Fournier 3a7c93e7f3 From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] password authentication

This patch adds support for plaintext password authentication.  To use
it, you add a line like

host         all         0.0.0.0       0.0.0.0           password  pg_pwd.conf


to your pg_hba.conf, where 'pg_pwd.conf' is the name of a file containing
the usernames and password hashes in the format of the first two fields
of a Unix /etc/passwd file.  (Of course, you can use a specific database
name or IP instead.)

Then, to connect with a password through libpq, you use the PQconnectdb()
function, specifying the "password=" tag in the connect string and also
adding the tag "authtype=password".

I also added a command-line switch '-u' to psql that tells it to prompt
for a username and password and use password authentication.
1997-03-12 21:23:16 +00:00
..
Makefile.in Various fixes suggested by Gregor Hoffleit 1997-02-09 03:23:52 +00:00
psql.c From: Dan McGuirk <mcguirk@indirect.com> 1997-03-12 21:23:16 +00:00
psqlHelp.h explain change 1996-12-29 19:31:16 +00:00
stringutils.c Various patches for nextstep by GregorHoffleit 1997-02-13 08:32:20 +00:00
stringutils.h Make it compile on Ultrix. Thanks Erik Bertelson. 1996-11-26 03:20:35 +00:00