mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
against a Unix server, and Windows-specific server-side authentication using SSPI "negotiate" method (Kerberos or NTLM). Only builds properly with MSVC for now.
48 lines
937 B
C
48 lines
937 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* hba.h
|
|
* Interface to hba.c
|
|
*
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.47 2007/07/23 10:16:54 mha Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef HBA_H
|
|
#define HBA_H
|
|
|
|
#include "nodes/pg_list.h"
|
|
|
|
|
|
typedef enum UserAuth
|
|
{
|
|
uaReject,
|
|
uaKrb5,
|
|
uaTrust,
|
|
uaIdent,
|
|
uaPassword,
|
|
uaCrypt,
|
|
uaMD5,
|
|
uaGSS,
|
|
uaSSPI
|
|
#ifdef USE_PAM
|
|
,uaPAM
|
|
#endif /* USE_PAM */
|
|
#ifdef USE_LDAP
|
|
,uaLDAP
|
|
#endif
|
|
} UserAuth;
|
|
|
|
typedef struct Port hbaPort;
|
|
|
|
extern List **get_role_line(const char *role);
|
|
extern void load_hba(void);
|
|
extern void load_ident(void);
|
|
extern void load_role(void);
|
|
extern int hba_getauthmethod(hbaPort *port);
|
|
extern int authident(hbaPort *port);
|
|
extern bool read_pg_database_line(FILE *fp, char *dbname, Oid *dboid,
|
|
Oid *dbtablespace, TransactionId *dbfrozenxid);
|
|
|
|
#endif /* HBA_H */
|