diff options
author | Roger Leigh <rleigh@debian.org> | 2009-05-10 13:23:17 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-05-10 17:40:31 +0100 |
commit | 7d2491c82040e318688926cd3976600225afab16 (patch) | |
tree | 5ebc86304f3ac33c95e1af23962cba95ad0194dc /bin | |
parent | eef6520812d03e3532546a5b33a0373cf3aa4766 (diff) | |
download | schroot-7d2491c82040e318688926cd3976600225afab16.tar.gz |
[sbuild] Make PAM support configurable
On systems without PAM authentication, any attempt at authentication
will fail. If not switching users, the program will not require
authentication and so will work for most common uses.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/schroot/schroot-main-base.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/schroot/schroot-main-base.cc b/bin/schroot/schroot-main-base.cc index 12bcfbb7..c9e2a366 100644 --- a/bin/schroot/schroot-main-base.cc +++ b/bin/schroot/schroot-main-base.cc @@ -20,8 +20,11 @@ #include "schroot-main-base.h" +#include <sbuild/sbuild-config.h> +#ifdef SBUILD_FEATURE_PAM #include <sbuild/sbuild-auth-conv.h> #include <sbuild/sbuild-auth-conv-tty.h> +#endif // SBUILD_FEATURE_PAM #include <cstdlib> #include <ctime> @@ -279,6 +282,7 @@ main_base::run_impl () verbosity = sbuild::auth::VERBOSITY_VERBOSE; this->session->get_auth()->set_verbosity(verbosity); +#ifdef SBUILD_FEATURE_PAM /* Set up authentication timeouts. */ std::tr1::shared_ptr<sbuild::auth_conv> conv(new sbuild::auth_conv_tty @@ -288,6 +292,7 @@ main_base::run_impl () conv->set_warning_timeout(curtime + 15); conv->set_fatal_timeout(curtime + 20); this->session->get_auth()->set_conv(conv); +#endif // SBUILD_FEATURE_PAM /* Run session. */ this->session->run(); |