postgresql_passchanger_func.../grants_to_grant.sql
2022-01-04 18:46:37 +01:00

10 lines
390 B
SQL

-- grant execution on the function
grant execute on function dba.passchanger(_password text) to dodger;
-- only insert is needed to allow audit trace
GRANT INSERT ON TABLE dba.pwdhistory TO dodger;
-- the following permissions are necessary to change the 'VALID UNTIL' date
grant select on pg_catalog.pg_authid to dodger ;
grant update (rolvaliduntil) on pg_catalog.pg_authid to dodger ;