|
| 1 | +Edit postgresql-7.0RC5/src/Makefile.global.in. Change PG_KRB_SRVTAB to |
| 2 | +somewhere useful for you, and PG_KRB_SRVNAM to whatever you want your |
| 3 | +postgres kerberos service called. |
| 4 | + |
| 5 | +make and install PostgreSQL. |
| 6 | + |
| 7 | +Generate the keytab (PG_KRB_SRVTAB): kadmin% ank -randkey |
| 8 | +postgres/server.my.domain.org kadmin% ktadd -k krb5.keytab |
| 9 | +postgres/server.my.domain.org |
| 10 | + |
| 11 | +Make sure the keytab is read-only to the postgres user. Make sure your |
| 12 | +client binaries can see the new libraries. |
| 13 | + |
| 14 | +edit pg_hba.conf and change the authentication method to krb5. |
| 15 | + |
| 16 | +Everything should then work. If you use mod_auth_krb and mod_perl on |
| 17 | +your web server, you can use AuthType KerberosV5SaveCredentials with a |
| 18 | +mod_perl script. This gives secure database access over the web. No |
| 19 | +extra passwords required. |
| 20 | + |
| 21 | +Mike Wyer <mw@doc.ic.ac.uk> |