mirror of
https://github.com/postgres/postgres.git
synced 2026-06-05 06:43:00 -04:00
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 |
||
|---|---|---|
| .. | ||
| auth.c | ||
| be-dumpdata.c | ||
| be-fsstubs.c | ||
| be-pqexec.c | ||
| crypt.c | ||
| hba.c | ||
| Makefile | ||
| password.c | ||
| pg_hba.conf.sample | ||
| pg_ident.conf.sample | ||
| portal.c | ||
| portalbuf.c | ||
| pqcomm.c | ||
| pqcomprim.c | ||
| pqpacket.c | ||
| pqsignal.c | ||
| util.c | ||