diff options
| author | Bruce Momjian <bruce@momjian.us> | 2001-09-06 03:23:38 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2001-09-06 03:23:38 +0000 |
| commit | 04c1f729202b00cf053535587820cd913dbddfc1 (patch) | |
| tree | 3afd9375fb29892a03e9688f05fd9e966501d13f /src/backend/libpq/hba.c | |
| parent | 2a34134b6c5a46d8f905a82af51c55a7ec91ecac (diff) | |
| download | postgresql-04c1f729202b00cf053535587820cd913dbddfc1.tar.gz | |
PAM authentication:
> pam_strerror() should be used a few more times, rather than just saying
> "Error!". Also, the configure.in snippet seems wrong. You add
> -I$pam_prefix/include/security to $INCLUDES and then you #include
> <security/pam_appl.h>. This whole thing is probably unnecessary, since
> PAM is a system library on the systems where it exists, so the headers
> and libraries are found automatically, unlike OpenSSL and
> Kerberos.
See attached revised patch. (I'm sure the configure.in stuff can be done
right/better, I'm just not enough of a autoconf guru to know what to
change it to.)
Dominic J. Eidson
Diffstat (limited to 'src/backend/libpq/hba.c')
| -rw-r--r-- | src/backend/libpq/hba.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index 9dddb61754..69f88c257f 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.68 2001/08/21 15:49:17 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.69 2001/09/06 03:23:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -235,6 +235,10 @@ parse_hba_auth(List *line, ProtocolVersion proto, UserAuth *userauth_p, *userauth_p = uaMD5; else if (strcmp(token, "crypt") == 0) *userauth_p = uaCrypt; +#ifdef USE_PAM + else if (strcmp(token, "pam") == 0) + *userauth_p = uaPAM; +#endif else *error_p = true; line = lnext(line); @@ -277,7 +281,6 @@ parse_hba(List *line, hbaPort *port, bool *found_p, bool *error_p) line_number = lfirsti(line); line = lnext(line); Assert(line != NIL); - /* Check the record type. */ token = lfirst(line); if (strcmp(token, "local") == 0) |
