diff options
author | Magnus Hagander <magnus@hagander.net> | 2008-11-28 14:26:58 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2008-11-28 14:26:58 +0000 |
commit | 5d2a1a41d053672f7007cea3da66937681730ea5 (patch) | |
tree | 52c8f17f5d0ac7bdf919884cae5c6148c69b6fe3 /doc/src/sgml | |
parent | 2939e20037acea4a1f8a6e9b6a66984a10d82f94 (diff) |
Support regular expressions in pg_ident.conf.
Diffstat (limited to 'doc/src/sgml')
-rw-r--r-- | doc/src/sgml/client-auth.sgml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml index 4a8aea4d3a9..a6a96c180df 100644 --- a/doc/src/sgml/client-auth.sgml +++ b/doc/src/sgml/client-auth.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.113 2008/11/20 20:45:29 momjian Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.114 2008/11/28 14:26:58 mha Exp $ --> <chapter id="client-authentication"> <title>Client Authentication</title> @@ -595,6 +595,19 @@ local db1,db2,@demodbs all md5 There is no restriction regarding how many database users a given operating system user can correspond to, nor vice versa. </para> + <para> + If the <replaceable>system-username</> field starts with a slash (<literal>/</>), + the contents of the field is treated as a regular expression. This regular + expression supports a single capture, which can be back-referenced as + <literal>\1</> (backslash-one). This allows the mapping of different syntax + names with a single line. + <programlisting> +mymap /(.*)@mydomain.com \1 +mymap /(.*)@otherdomain.com guest + </programlisting> + will "remove" the domain part for users with system usernames @mydomain.com, and + allow all users from @otherdomain.com to log in as guest. + </para> <para> The <filename>pg_ident.conf</filename> file is read on start-up and |