authmech

Description

Determines what authentication mechanism is used by a specified logged in server process ID.

Syntax

authmech ([spid])

Examples

Example 1

Returns the authentication mechanism for server process ID 42, whether KERBEROS, LDAP, or any other mechanism:

select authmech(42)

Example 2

Returns the authentication mechanism for the current login’s server process ID:

select authmech()

or

select authmech(0)

Example 3

Prints the authentication mechanism used for each login session:

select suid, authmech(spid)
    from sysprocesses where suid!=0

Usage

Permissions

Any user can execute authmech to query a current personal session. You must have sso_role privileges to query the details of another user’s session.