GRANT (authentication)
Associates an authentication record to one or more users and roles.
Associates an authentication record to one or more users and roles.
Syntax
GRANT AUTHENTICATION auth-method-name TO grantee[,...]
Parameters
auth-method-name- Name of the authentication method to associate with one or more users or roles.
grantee- Specifies who is associated with the authentication method, one of the following:
Privileges
Superuser
Examples
-
Associate
v_ldapauthentication with userjsmith:=> GRANT AUTHENTICATION v_ldap TO jsmith; -
Associate
v_gssauthentication to the roleDBprogrammer:=> CREATE ROLE DBprogrammer; => GRANT AUTHENTICATION v_gss TO DBprogrammer; -
Associate client authentication method
v_localpwdwith rolePUBLIC, which is assigned by default to all users:=> GRANT AUTHENTICATION v_localpwd TO PUBLIC;