PAM authentication:
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| configure.in | modified | +25 −2 |
| doc/src/sgml/client-auth.sgml | modified | +22 −1 |
| src/backend/libpq/auth.c | modified | +224 −9 |
| src/backend/libpq/hba.c | modified | +5 −2 |
| src/backend/libpq/pg_hba.conf.sample | modified | +6 −1 |
| src/include/libpq/hba.h | modified | +4 −1 |
| src/include/pg_config.h.in | modified | +4 −1 |