diff options
| author | Bruce Momjian | 2005-06-04 20:42:43 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2005-06-04 20:42:43 +0000 |
| commit | 72c53ac3a7faaf825752843fbb77b059a1c5f565 (patch) | |
| tree | 632d2da27736de8d8a41624a516e0560869e9da5 /src/include | |
| parent | d995014fac604b256e7123c472cbfd4dde91d411 (diff) | |
Allow kerberos name and username case sensitivity to be specified from
postgresql.conf.
---------------------------------------------------------------------------
Here's an updated version of the patch, with the following changes:
1) No longer uses "service name" as "application version". It's instead
hardcoded as "postgres". It could be argued that this part should be
backpatched to 8.0, but it doesn't make a big difference until you can
start changing it with GUC / connection parameters. This change only
affects kerberos 5, not 4.
2) Now downcases kerberos usernames when the client is running on win32.
3) Adds guc option for "krb_caseins_users" to make the server ignore
case mismatch which is required by some KDCs such as Active Directory.
Off by default, per discussion with Tom. This change only affects
kerberos 5, not 4.
4) Updated so it doesn't conflict with the rendevouz/bonjour patch
already in ;-)
Magnus Hagander
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/libpq/auth.h | 4 | ||||
| -rw-r--r-- | src/include/pg_config.h.in | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/include/libpq/auth.h b/src/include/libpq/auth.h index 3aef036078f..b8fd25eb64f 100644 --- a/src/include/libpq/auth.h +++ b/src/include/libpq/auth.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/libpq/auth.h,v 1.26 2004/12/31 22:03:32 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/libpq/auth.h,v 1.27 2005/06/04 20:42:42 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -27,5 +27,7 @@ extern void ClientAuthentication(Port *port); #define PG_KRB5_VERSION "PGVER5.1" extern char *pg_krb_server_keyfile; +extern char *pg_krb_srvnam; +extern bool pg_krb_caseins_users; #endif /* AUTH_H */ diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 51a13907bb0..da29557e927 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -602,7 +602,7 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define to the name of the PostgreSQL service principal in Kerberos. +/* Define to the name of the default PostgreSQL service principal in Kerberos. (--with-krb-srvnam=NAME) */ #undef PG_KRB_SRVNAM @@ -635,6 +635,9 @@ /* Define to 1 to build with assertion checks. (--enable-cassert) */ #undef USE_ASSERT_CHECKING +/* Define to 1 to build with Bonjour support. (--with-bonjour) */ +#undef USE_BONJOUR + /* Define to 1 if you want 64-bit integer timestamp and interval support. (--enable-integer-datetimes) */ #undef USE_INTEGER_DATETIMES @@ -645,9 +648,6 @@ /* Define to 1 to build with PAM support. (--with-pam) */ #undef USE_PAM -/* Define to 1 to build with Bonjour support. (--with-bonjour) */ -#undef USE_BONJOUR - /* Use replacement snprintf() functions. */ #undef USE_SNPRINTF |
