|
|
|
@ -2567,6 +2567,7 @@ SELECT * FROM ft1_nopw LIMIT 1; |
|
|
|
|
-- Unpriv user cannot make the mapping passwordless |
|
|
|
|
ALTER USER MAPPING FOR CURRENT_USER SERVER loopback_nopw OPTIONS (ADD password_required 'false'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT * FROM ft1_nopw LIMIT 1; |
|
|
|
|
|
|
|
|
|
RESET ROLE; |
|
|
|
@ -2579,6 +2580,12 @@ SET ROLE regress_nosuper; |
|
|
|
|
-- Should finally work now |
|
|
|
|
SELECT * FROM ft1_nopw LIMIT 1; |
|
|
|
|
|
|
|
|
|
-- unpriv user also cannot set sslcert / sslkey on the user mapping |
|
|
|
|
-- first set password_required so we see the right error messages |
|
|
|
|
ALTER USER MAPPING FOR CURRENT_USER SERVER loopback_nopw OPTIONS (SET password_required 'true'); |
|
|
|
|
ALTER USER MAPPING FOR CURRENT_USER SERVER loopback_nopw OPTIONS (ADD sslcert 'foo.crt'); |
|
|
|
|
ALTER USER MAPPING FOR CURRENT_USER SERVER loopback_nopw OPTIONS (ADD sslkey 'foo.key'); |
|
|
|
|
|
|
|
|
|
-- We're done with the role named after a specific user and need to check the |
|
|
|
|
-- changes to the public mapping. |
|
|
|
|
DROP USER MAPPING FOR CURRENT_USER SERVER loopback_nopw; |
|
|
|
|