Skip site navigation (1) Skip section navigation (2)

usermap regexp support

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: usermap regexp support
Date: 2008-10-28 19:59:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
The attached patch tries to implement regexp support in the usermaps

The use-case will be to do things like realm-based matches in
kerberos/GSSAPI authentication (will require some further hacks on that
one to expose the realm name). For example you could have:

krb	/^(.*)$	\1
krb	/^(.*)	guest

and things like that.

It will also likely be quite useful once we get SSL certificate based

Reviews particularly appreciated - I really can't claim to *know* our
regexp code :-O

Obviously docs need to be updated as well.


Attachment: ident_regexp.diff
Description: text/x-diff (4.4 KB)


pgsql-hackers by date

Next:From: Grzegorz JaskiewiczDate: 2008-10-28 20:04:42
Subject: Re: current head fails regression tests on mac osx
Previous:From: Tom LaneDate: 2008-10-28 19:52:55
Subject: Re: Re: [COMMITTERS] pgsql: Rework subtransaction commit protocol for hot standby.

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group