Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5aae047e
Commit
5aae047e
authored
Oct 13, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update krb_server_name to document that a missing entry defaults to
'localhost'. Improve kerberos error message.
parent
f91370cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+3
-4
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+5
-5
No files found.
doc/src/sgml/config.sgml
View file @
5aae047e
<!--
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.2
7 2005/10/13 20:58:42
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.2
8 2005/10/13 22:55:19
momjian Exp $
-->
<chapter Id="runtime-config">
<title>Run-time Configuration</title>
...
...
@@ -596,9 +596,8 @@ SET ENABLE_SEQSCAN TO OFF;
<varname>krb_srvname</><literal>/</><varname>krb_server_hostname</><literal>@</>REALM.
</para>
<para>
If not set, the default is to allow any service principal matching an entry
in the keytab. See <xref linkend="kerberos-auth"> for details.
This parameter can only be set at server start.
If not set, the default is <literal>localhost</>. See <xref linkend="kerberos-auth">
for details. This parameter can only be set at server start.
</para>
</listitem>
</varlistentry>
...
...
src/backend/libpq/auth.c
View file @
5aae047e
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.12
8 2005/10/08 19:32:57 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.12
9 2005/10/13 22:55:19 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -162,11 +162,11 @@ pg_krb5_init(void)
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 serv
er
\"
%s
\"
for serv
ice
\"
%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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment