diff options
| author | Marc G. Fournier | 1997-03-12 21:23:16 +0000 |
|---|---|---|
| committer | Marc G. Fournier | 1997-03-12 21:23:16 +0000 |
| commit | 3a7c93e7f32b555defdc2ea0b0554f6dd0a34c41 (patch) | |
| tree | 39e3c59630f15d44aaa3ad7ad0ae4fac7723f68b /src/include/config.h.in | |
| parent | 5dde558ce60db1f8747bbf745d56bd9cd5f4c7b7 (diff) | |
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.
Diffstat (limited to 'src/include/config.h.in')
| -rw-r--r-- | src/include/config.h.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in index c0f56a2ac09..99973dde07f 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -266,8 +266,11 @@ */ /*#define GEQO */ /* backend/optimizer/path/allpaths.c */ - - +/* + * Define this if you want psql to _always_ ask for a username and a password + * for password authentication. + */ +/* #define PSQL_ALWAYS_GET_PASSWORDS */ /* Undocumented "features"? */ #define FASTBUILD /* access/nbtree/nbtsort.c */ |
