mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add BSD authentication method.
Create a "bsd" auth method that works the same as "password" so far as clients are concerned, but calls the BSD Authentication service to check the password. This is currently only available on OpenBSD. Marisa Emerson, reviewed by Thomas Munro
This commit is contained in:
14
configure.in
14
configure.in
@ -673,6 +673,16 @@ PGAC_ARG_BOOL(with, pam, no,
|
||||
AC_MSG_RESULT([$with_pam])
|
||||
|
||||
|
||||
#
|
||||
# BSD AUTH
|
||||
#
|
||||
AC_MSG_CHECKING([whether to build with BSD Authentication support])
|
||||
PGAC_ARG_BOOL(with, bsd-auth, no,
|
||||
[build with BSD Authentication support],
|
||||
[AC_DEFINE([USE_BSD_AUTH], 1, [Define to 1 to build with BSD Authentication support. (--with-bsd-auth)])])
|
||||
AC_MSG_RESULT([$with_bsd_auth])
|
||||
|
||||
|
||||
#
|
||||
# LDAP
|
||||
#
|
||||
@ -1269,6 +1279,10 @@ if test "$with_pam" = yes ; then
|
||||
[AC_MSG_ERROR([header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM.])])])
|
||||
fi
|
||||
|
||||
if test "$with_bsd_auth" = yes ; then
|
||||
AC_CHECK_HEADER(bsd_auth.h, [], [AC_MSG_ERROR([header file <bsd_auth.h> is required for BSD Authentication support])])
|
||||
fi
|
||||
|
||||
if test "$with_systemd" = yes ; then
|
||||
AC_CHECK_HEADER(systemd/sd-daemon.h, [], [AC_MSG_ERROR([header file <systemd/sd-daemon.h> is required for systemd support])])
|
||||
fi
|
||||
|
Reference in New Issue
Block a user