postgresql/src/backend/libpq
Bruce Momjian 9cab13c42e I've been having also sorts of fun trying to get kerberos 4
authentifica
tion
working with postgresql-6.4.2 and  KTH-KRB Ebones
(http://www.pdc.kth.se/kth-kr
b) on a dec alpha running DU 4.0D using the native compiler. The
following
patch does the trick.

The rationale behind this is as follows. The KTH-KRB code header files
defines
lots of lengths like INST_SZ,REALM_SZ and KRB_SENDAUTH_VLEN. It also has
a
habit of doing things like

        chararray[LENGTH] = '\0'

to ensure null terminated strings. In my instance this just happens to
blat
the kerberos principal instance string leading to error like

        pg_krb4_recvauth: kerberos error: Can't decode authenticator
(krb_rd_req
)

The application code that comes with KTH-KRB uses "KRB_SENDAUTH_VLEN +
1" and
sometimes uses "INST_SZ + 1" so it seems safest to put that 1 char
buffer in
the appropriate place.


Rodney McDuff
1999-03-14 16:06:43 +00:00
..
auth.c I've been having also sorts of fun trying to get kerberos 4 1999-03-14 16:06:43 +00:00
be-dumpdata.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
be-fsstubs.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
be-pqexec.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
crypt.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
hba.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
Makefile From: t-ishii@sra.co.jp 1998-07-26 04:31:41 +00:00
password.c Apply Win32 patch from Horak Daniel. 1999-01-17 06:20:06 +00:00
pg_hba.conf.sample Cleanup of 'sameuser' patch. 1998-06-13 05:14:56 +00:00
pg_ident.conf.sample Move YACC and YFLAGS into the template files 1997-04-04 11:23:15 +00:00
portal.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
portalbuf.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
pqcomm.c Produce a more specific error message when backend sees EOF on 1999-02-18 01:13:26 +00:00
pqcomprim.c Add explicit buffering in backend libpq, to compensate for 1999-01-23 22:27:29 +00:00
pqpacket.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
pqsignal.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
util.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00