mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Track behavior of \1 in pg_ident.conf when quoted
Entries of pg-user in pg_ident.conf that are quoted and include '\1' allow a replacement from a subexpression in a system user regexp. This commit adds a test to track this behavior and a note in the documentation, as it could be affected by the use of an AuthToken for the pg-user in the IdentLines parsed. This subject has come up in the discussion aimed at extending the support of pg-user in ident entries for more patterns. Author: Jelte Fennema Discussion: https://postgr.es/m/CAGECzQRNow4MwkBjgPxywXdJU_K3a9+Pm78JB7De3yQwwkTDew@mail.gmail.com
This commit is contained in:
@ -960,6 +960,9 @@ mymap /^(.*)@otherdomain\.com$ guest
|
||||
will remove the domain part for users with system user names that end with
|
||||
<literal>@mydomain.com</literal>, and allow any user whose system name ends with
|
||||
<literal>@otherdomain.com</literal> to log in as <literal>guest</literal>.
|
||||
Quoting a <replaceable>database-username</replaceable> containing
|
||||
<literal>\1</literal> <emphasis>does not</emphasis> make
|
||||
<literal>\1</literal> lose its special meaning.
|
||||
</para>
|
||||
|
||||
<tip>
|
||||
|
Reference in New Issue
Block a user