<replaceable>servicename</> can be set on the server side using the
<xref linkend="guc-krb-srvname"> configuration parameter, and on the
client side using the krbsrvname connection parameter. (See also <xref linkend="libpq-connect">.). The installation default can be changed from the default
<literal>postgres</literal> at build time using
<literal>./configure --with-krb-srvnam=whatever</>). In most environments,
this parameter never needs to be changed. However, to support multiple
<productname>PostgreSQL</> installations on the same host it is necessary.
Some Kerberos implementations may also require a different service name,
such as Microsoft Active Directory which requires the service name
to be in uppercase (<literal>POSTGRES</literal>).
</para>
<para>
<replaceable>hostname</> is the fully qualified host name of the
<replaceable>hostname</> is the fully qualified host name of the
server machine. The service principal's realm is the preferred realm
server machine. The service principal's realm is the preferred realm
of the server machine.
of the server machine.
@ -658,12 +664,12 @@ local db1,db2,@demodbs all md5
</para>
</para>
<para>
<para>
Make sure that your server key file is readable (and preferably
Make sure that your server keytab file is readable (and preferably
only readable) by the <productname>PostgreSQL</productname> server
only readable) by the <productname>PostgreSQL</productname> server
account. (See also <xref linkend="postgres-user">.) The location
account. (See also <xref linkend="postgres-user">.) The location
of the key file is specified by the <xref
of the key file is specified by the <xref
linkend="guc-krb-server-keyfile"> configuration
linkend="guc-krb-server-keyfile"> configuration
parameter. (See also <xref linkend="runtime-config">.) The default
parameter. The default
is <filename>/etc/srvtab</> if you are using Kerberos 4 and
is <filename>/etc/srvtab</> if you are using Kerberos 4 and