Run-time Configuration
krb_srvname>/>krb_server_hostname>@>REALM.
- If not set, the default is to allow any service principal matching an entry
- in the keytab. See for details.
- This parameter can only be set at server start.
+ If not set, the default is localhost>. See
+ for details. This parameter can only be set at server start.
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.128 2005/10/08 19:32:57 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.129 2005/10/13 22:55:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
if (retval)
{
ereport(LOG,
- (errmsg("Kerberos sname_to_principal(\"%s\") returned error %d",
- pg_krb_srvnam, retval)));
+ (errmsg("Kerberos sname_to_principal(\"%s\", \"%s\") returned error %d",
+ khostname ? khostname : "localhost", pg_krb_srvnam, retval)));
com_err("postgres", retval,
- "while getting server principal for service \"%s\"",
- pg_krb_srvnam);
+ "while getting server principal for server \"%s\" for service \"%s\"",
+ khostname ? khostname : "localhost", pg_krb_srvnam);
krb5_kt_close(pg_krb5_context, pg_krb5_keytab);
krb5_free_context(pg_krb5_context);
return STATUS_ERROR;