- Notifications
You must be signed in to change notification settings - Fork28
Commit9cab13c
committed
I've been having also sorts of fun trying to get kerberos 4
authentificationworking with postgresql-6.4.2 and KTH-KRB Ebones(http://www.pdc.kth.se/kth-krb) on a dec alpha running DU 4.0D using the native compiler. Thefollowingpatch does the trick.The rationale behind this is as follows. The KTH-KRB code header filesdefineslots of lengths like INST_SZ,REALM_SZ and KRB_SENDAUTH_VLEN. It also hasahabit of doing things like chararray[LENGTH] = '\0'to ensure null terminated strings. In my instance this just happens toblatthe 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" andsometimes uses "INST_SZ + 1" so it seems safest to put that 1 charbuffer inthe appropriate place.Rodney McDuff1 parentaba8c12 commit9cab13c
2 files changed
+6
-6
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
| 80 | + | |
| 81 | + | |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
148 |
| - | |
| 147 | + | |
| 148 | + | |
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
|
0 commit comments
Comments
(0)