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
|
|
|
*
|
|
|
|
*
|
2006-10-04 02:30:14 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.44 2006/10/04 00:30:08 momjian 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 */
|
2006-03-06 18:41:44 +01:00
|
|
|
#ifdef USE_LDAP
|
2006-10-04 02:30:14 +02:00
|
|
|
,uaLDAP
|
2006-03-06 18:41:44 +01:00
|
|
|
#endif
|
1998-01-26 02:42:53 +01:00
|
|
|
} UserAuth;
|
|
|
|
|
1999-09-27 05:13:16 +02:00
|
|
|
typedef struct Port hbaPort;
|
|
|
|
|
2005-06-28 07:09:14 +02:00
|
|
|
extern List **get_role_line(const char *role);
|
2002-04-04 06:25:54 +02:00
|
|
|
extern void load_hba(void);
|
|
|
|
extern void load_ident(void);
|
2005-06-28 07:09:14 +02:00
|
|
|
extern void load_role(void);
|
2001-10-25 07:50:21 +02:00
|
|
|
extern int hba_getauthmethod(hbaPort *port);
|
|
|
|
extern int authident(hbaPort *port);
|
2005-10-15 04:49:52 +02:00
|
|
|
extern bool read_pg_database_line(FILE *fp, char *dbname, Oid *dboid,
|
2006-07-10 18:20:52 +02:00
|
|
|
Oid *dbtablespace, TransactionId *dbminxid,
|
2005-10-15 04:49:52 +02:00
|
|
|
TransactionId *dbvacuumxid);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
#endif /* HBA_H */
|