From b8d88c4347e6ccb450064f56ba867c9bb3a76557 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 2 Jan 2009 10:33:20 +0000 Subject: [PATCH] Make it possible to change Kerberos/GSSAPI parameters without restarting the postmaster. They are only used in backend processes, so it's just a matter of re-labeling the GUCs. --- doc/src/sgml/config.sgml | 12 +++++------- src/backend/utils/misc/guc.c | 10 +++++----- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 7493ca9e69..a4d0f26667 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -621,8 +621,7 @@ SET ENABLE_SEQSCAN TO OFF; Sets the realm to match Kerberos, GSSAPI and SSPI user names against. See , or - for details. This parameter can only be - set at server start. + for details. @@ -636,7 +635,7 @@ SET ENABLE_SEQSCAN TO OFF; Sets the location of the Kerberos server key file. See or - for details. This parameter can only be set at server start. + for details. @@ -649,7 +648,7 @@ SET ENABLE_SEQSCAN TO OFF; Sets the Kerberos service name. See - for details. This parameter can only be set at server start. + for details. @@ -666,7 +665,7 @@ SET ENABLE_SEQSCAN TO OFF; the complete service principal, that is krb_srvname/krb_server_hostname@REALM. If not set, the default is the server host name. See - for details. This parameter can only be set at server start. + for details. @@ -680,8 +679,7 @@ SET ENABLE_SEQSCAN TO OFF; Sets whether Kerberos and GSSAPI user names should be treated case-insensitively. - The default is off (case sensitive). This parameter - can only be set at server start. + The default is off (case sensitive). diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 28c66416e3..137077e104 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -1144,7 +1144,7 @@ static struct config_bool ConfigureNamesBool[] = }, { - {"krb_caseins_users", PGC_POSTMASTER, CONN_AUTH_SECURITY, + {"krb_caseins_users", PGC_SIGHUP, CONN_AUTH_SECURITY, gettext_noop("Sets whether Kerberos and GSSAPI user names should be treated as case-insensitive."), NULL }, @@ -2123,7 +2123,7 @@ static struct config_string ConfigureNamesString[] = }, { - {"krb_realm", PGC_POSTMASTER, CONN_AUTH_SECURITY, + {"krb_realm", PGC_SIGHUP, CONN_AUTH_SECURITY, gettext_noop("Sets realm to match Kerberos and GSSAPI users against."), NULL, GUC_SUPERUSER_ONLY @@ -2133,7 +2133,7 @@ static struct config_string ConfigureNamesString[] = }, { - {"krb_server_keyfile", PGC_POSTMASTER, CONN_AUTH_SECURITY, + {"krb_server_keyfile", PGC_SIGHUP, CONN_AUTH_SECURITY, gettext_noop("Sets the location of the Kerberos server key file."), NULL, GUC_SUPERUSER_ONLY @@ -2143,7 +2143,7 @@ static struct config_string ConfigureNamesString[] = }, { - {"krb_srvname", PGC_POSTMASTER, CONN_AUTH_SECURITY, + {"krb_srvname", PGC_SIGHUP, CONN_AUTH_SECURITY, gettext_noop("Sets the name of the Kerberos service."), NULL }, @@ -2152,7 +2152,7 @@ static struct config_string ConfigureNamesString[] = }, { - {"krb_server_hostname", PGC_POSTMASTER, CONN_AUTH_SECURITY, + {"krb_server_hostname", PGC_SIGHUP, CONN_AUTH_SECURITY, gettext_noop("Sets the hostname of the Kerberos server."), NULL }, -- 2.39.5