From: Eric Bollengier Date: Tue, 17 Aug 2021 15:40:17 +0000 (+0200) Subject: Add option to install totp plugin to ./configure X-Git-Tag: Beta-15.0.0~909 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1724d5f18073d6174b1a45c1abde5a188a5ff28c;p=thirdparty%2Fbacula.git Add option to install totp plugin to ./configure --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index a91863a90..4f419646b 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -3465,6 +3465,22 @@ dnl dnl Bacula Pluggable Authentication Modules - Director Plugins dnl +support_totp_bpam=no +AC_ARG_ENABLE(totp-bpam, + AC_HELP_STRING([--disable-totp-bpam], [disable TOTP BPAM support @<:@default=yes@:>@]), + [ + if test x$enableval = xyes; then + support_totp_bpam=yes + elif test x$enableval = xno; then + support_totp_bpam=disabled + fi + ] +) + +if test x$support_totp_bpam = xyes ; then + BPAM_TARGET_INSTALL="install-totp" +fi + dnl Director LDAP Auth Plugin support_ldap_bpam=auto AC_ARG_ENABLE(ldap-bpam, @@ -3495,6 +3511,7 @@ fi AC_SUBST(BPAM_LDAP_TARGET) AC_SUBST(BPAM_LDAP_TARGET_INSTALL) +AC_SUBST(BPAM_TARGET_INSTALL) AC_SUBST(DIR_PLUGIN_DIR) @@ -4189,6 +4206,7 @@ Configuration on `date`: - Docker: ${support_docker} - Kubernetes: ${support_kubernetes} - LDAP BPAM: ${support_ldap_bpam} + - TOTP BPAM: ${support_totp_bpam} - CDP: ${support_cdp} " > config.out