PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | HbaLine |
struct | IdentLine |
Macros | |
#define | USER_AUTH_LAST uaPeer /* Must be last value of this enum */ |
Typedefs | |
typedef enum UserAuth | UserAuth |
typedef enum IPCompareMethod | IPCompareMethod |
typedef enum ConnType | ConnType |
typedef enum ClientCertMode | ClientCertMode |
typedef struct HbaLine | HbaLine |
typedef struct IdentLine | IdentLine |
typedef struct Port | hbaPort |
Enumerations | |
enum | UserAuth { uaReject, uaImplicitReject, uaTrust, uaIdent, uaPassword, uaMD5, uaSCRAM, uaGSS, uaSSPI, uaPAM, uaBSD, uaLDAP, uaCert, uaRADIUS } |
enum | IPCompareMethod { ipCmpMask, ipCmpSameHost, ipCmpSameNet, ipCmpAll } |
enum | ConnType { ctLocal, ctHost, ctHostSSL, ctHostNoSSL, ctHostGSS, ctHostNoGSS } |
enum | ClientCertMode { clientCertOff, clientCertCA, clientCertFull } |
Functions | |
bool | load_hba (void) |
bool | load_ident (void) |
void | hba_getauthmethod (hbaPort *port) |
int | check_usermap (const char *usermap_name, const char *pg_role, const char *auth_user, bool case_sensitive) |
bool | pg_isblank (const char c) |
#define USER_AUTH_LAST uaPeer /* Must be last value of this enum */ |
Definition at line 42 of file hba.h.
Referenced by fill_hba_line().
typedef enum ClientCertMode ClientCertMode |
typedef enum IPCompareMethod IPCompareMethod |
enum ClientCertMode |
enum ConnType |
enum IPCompareMethod |
enum UserAuth |
int check_usermap | ( | const char * | usermap_name, |
const char * | pg_role, | ||
const char * | auth_user, | ||
bool | case_sensitive | ||
) |
Definition at line 2943 of file hba.c.
References check_ident_usermap(), ereport, errmsg(), error(), lfirst, LOG, pg_strcasecmp(), STATUS_ERROR, and STATUS_OK.
Referenced by auth_peer(), CheckSCRAMAuth(), and ident_inet().
void hba_getauthmethod | ( | hbaPort * | port | ) |
Definition at line 3109 of file hba.c.
References check_hba().
Referenced by ClientAuthentication().
bool load_hba | ( | void | ) |
Definition at line 2198 of file hba.c.
References AllocateFile(), ALLOCSET_SMALL_SIZES, AllocSetContextCreate, Assert, ereport, TokenizedLine::err_msg, errcode(), errcode_for_file_access(), errmsg(), FreeFile(), HbaFileName, lappend(), lfirst, LOG, MemoryContextDelete(), MemoryContextSwitchTo(), newline(), NIL, parse_hba_line(), PostmasterContext, and tokenize_file().
Referenced by PerformAuthentication(), PostmasterMain(), and SIGHUP_handler().
bool load_ident | ( | void | ) |
Definition at line 2998 of file hba.c.
References AllocateFile(), ALLOCSET_SMALL_SIZES, AllocSetContextCreate, Assert, ereport, TokenizedLine::err_msg, errcode_for_file_access(), errmsg(), FreeFile(), IdentLine::ident_user, IdentFileName, lappend(), lfirst, LOG, MemoryContextDelete(), MemoryContextSwitchTo(), newline(), NIL, parse_ident_line(), pg_regfree(), PostmasterContext, IdentLine::re, and tokenize_file().
Referenced by PerformAuthentication(), PostmasterMain(), and SIGHUP_handler().
bool pg_isblank | ( | const char | c | ) |
Definition at line 160 of file hba.c.
Referenced by interpret_ident_response(), and next_token().