mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Turn password_encryption GUC into an enum.
This makes the parameter easier to extend, to support other password-based authentication protocols than MD5. (SCRAM is being worked on.) The GUC still accepts on/off as aliases for "md5" and "plain", although we may want to remove those once we actually add support for another password hash type. Michael Paquier, reviewed by David Steele, with some further edits by me. Discussion: <CAB7nPqSMXU35g=W9X74HVeQp0uvgJxvYOuA4A-A3M+0wfEBv-w@mail.gmail.com>
This commit is contained in:
@@ -1163,21 +1163,22 @@ include_dir 'conf.d'
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="guc-password-encryption" xreflabel="password_encryption">
|
||||
<term><varname>password_encryption</varname> (<type>boolean</type>)
|
||||
<term><varname>password_encryption</varname> (<type>enum</type>)
|
||||
<indexterm>
|
||||
<primary><varname>password_encryption</> configuration parameter</primary>
|
||||
</indexterm>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
When a password is specified in <xref
|
||||
linkend="sql-createuser"> or
|
||||
<xref linkend="sql-alterrole">
|
||||
without writing either <literal>ENCRYPTED</> or
|
||||
<literal>UNENCRYPTED</>, this parameter determines whether the
|
||||
password is to be encrypted. The default is <literal>on</>
|
||||
(encrypt the password).
|
||||
When a password is specified in <xref linkend="sql-createuser"> or
|
||||
<xref linkend="sql-alterrole"> without writing either <literal>ENCRYPTED</>
|
||||
or <literal>UNENCRYPTED</>, this parameter determines whether the
|
||||
password is to be encrypted. The default value is <literal>md5</>, which
|
||||
stores the password as an MD5 hash. Setting this to <literal>plain</> stores
|
||||
it in plaintext. <literal>on</> and <literal>off</> are also accepted, as
|
||||
aliases for <literal>md5</> and <literal>plain</>, respectively.
|
||||
</para>
|
||||
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
Reference in New Issue
Block a user