summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2001-09-06 03:23:38 +0000
committerBruce Momjian2001-09-06 03:23:38 +0000
commit04c1f729202b00cf053535587820cd913dbddfc1 (patch)
tree3afd9375fb29892a03e9688f05fd9e966501d13f /src/include
parent2a34134b6c5a46d8f905a82af51c55a7ec91ecac (diff)
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/include')
-rw-r--r--src/include/libpq/hba.h5
-rw-r--r--src/include/pg_config.h.in5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h
index 02eee16d9a0..6525d5ecb3f 100644
--- a/src/include/libpq/hba.h
+++ b/src/include/libpq/hba.h
@@ -4,7 +4,7 @@
* Interface to hba.c
*
*
- * $Id: hba.h,v 1.25 2001/08/24 16:59:10 momjian Exp $
+ * $Id: hba.h,v 1.26 2001/09/06 03:23:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -31,6 +31,9 @@
typedef enum UserAuth
{
+#ifdef USE_PAM
+ uaPAM,
+#endif /* USE_PAM */
uaReject,
uaKrb4,
uaKrb5,
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 8a165be62db..30a3834261d 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -8,7 +8,7 @@
* or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your
* changes will be overwritten the next time you run configure.
*
- * $Id: pg_config.h.in,v 1.2 2001/09/06 02:56:32 momjian Exp $
+ * $Id: pg_config.h.in,v 1.3 2001/09/06 03:23:38 momjian Exp $
*/
#ifndef PG_CONFIG_H
@@ -63,6 +63,9 @@
/* Define to build with (Open)SSL support (--with-openssl[=DIR]) */
#undef USE_SSL
+/* Define to build with PAM Support */
+#undef USE_PAM
+
/*
* DEF_PGPORT is the TCP port number on which the Postmaster listens and
* which clients will try to connect to. This is just a default value;