1996-10-11 11:12:18 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* hba.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* Interface to hba.c
|
1996-10-11 11:12:18 +02:00
|
|
|
*
|
|
|
|
*
|
2005-06-27 04:04:26 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.37 2005/06/27 02:04:25 neilc Exp $
|
1996-10-11 11:12:18 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef HBA_H
|
1997-09-07 07:04:48 +02:00
|
|
|
#define HBA_H
|
1996-10-11 11:12:18 +02:00
|
|
|
|
2002-04-04 06:25:54 +02:00
|
|
|
#include "nodes/pg_list.h"
|
|
|
|
|
2005-02-26 19:43:34 +01:00
|
|
|
|
1998-02-26 05:46:47 +01:00
|
|
|
typedef enum UserAuth
|
|
|
|
{
|
2001-10-28 07:26:15 +01:00
|
|
|
uaReject,
|
|
|
|
uaKrb5,
|
|
|
|
uaTrust,
|
|
|
|
uaIdent,
|
|
|
|
uaPassword,
|
|
|
|
uaCrypt,
|
|
|
|
uaMD5
|
2001-09-21 22:31:49 +02:00
|
|
|
#ifdef USE_PAM
|
2001-10-28 07:26:15 +01:00
|
|
|
,uaPAM
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* USE_PAM */
|
1998-01-26 02:42:53 +01:00
|
|
|
} UserAuth;
|
|
|
|
|
1999-09-27 05:13:16 +02:00
|
|
|
typedef struct Port hbaPort;
|
|
|
|
|
2002-04-04 06:25:54 +02:00
|
|
|
extern List **get_user_line(const char *user);
|
|
|
|
extern void load_hba(void);
|
|
|
|
extern void load_ident(void);
|
|
|
|
extern void load_user(void);
|
|
|
|
extern void load_group(void);
|
2001-10-25 07:50:21 +02:00
|
|
|
extern int hba_getauthmethod(hbaPort *port);
|
|
|
|
extern int authident(hbaPort *port);
|
2005-02-26 19:43:34 +01:00
|
|
|
extern bool read_pg_database_line(FILE *fp, char *dbname,
|
|
|
|
Oid *dboid, Oid *dbtablespace);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2005-02-26 19:43:34 +01:00
|
|
|
#endif /* HBA_H */
|