5
#ifndef __PAM_PG_OPTIONS_H_
6
#define __PAM_PG_OPTIONS_H_
8
#define PAM_PGSQL_FILECONF SYSCONFDIR "/pam_pgsql.conf"
9
#define PAM_PGSQL_PORT 5432
11
#include <sys/cdefs.h>
13
#define PAM_OPT_DEBUG 0x01
14
#define PAM_OPT_NO_WARN 0x02
15
#define PAM_OPT_USE_FIRST_PASS 0x04
16
#define PAM_OPT_TRY_FIRST_PASS 0x08
17
#define PAM_OPT_USE_MAPPED_PASS 0x10
18
#define PAM_OPT_ECHO_PASS 0x20
19
#define PAM_OPT_TRY_OLDAUTH 0x40
20
#define PAM_OPT_USE_OLDAUTH 0x80
30
typedef struct modopt_s {
48
char *query_auth_succ;
49
char *query_auth_fail;
50
char *query_session_open;
51
char *query_session_close;
59
modopt_t * mod_options(int , const char **);
62
int pam_get_pass(pam_handle_t *, int, const char **, const char *, int);
63
int pam_get_confirm_pass(pam_handle_t *, const char **, const char *, const char *, int);
64
const char *pam_get_service(pam_handle_t *pamh);