]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add option to install totp plugin to ./configure
authorEric Bollengier <eric@baculasystems.com>
Tue, 17 Aug 2021 15:40:17 +0000 (17:40 +0200)
committerEric Bollengier <eric@baculasystems.com>
Fri, 30 Jun 2023 16:33:45 +0000 (18:33 +0200)
bacula/autoconf/configure.in

index a91863a9029054c2d589d506abc8313a5718e0af..4f419646bf30c10d6709a73d1f9ab4cf32b17d54 100644 (file)
@@ -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