diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-07-11 15:49:46 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-03-12 12:03:32 +0100 |
commit | d80817f101d1b3f1a9b1c5ec268f28fffa2d75f9 (patch) | |
tree | bc08908a2151ba0c2c552410944ee101e563dc31 /common/rfb/UnixPasswordValidator.cxx | |
parent | a92aec4fbb287c2ebb79f3d3406668086057ce20 (diff) | |
download | tigervnc-d80817f101d1b3f1a9b1c5ec268f28fffa2d75f9.tar.gz tigervnc-d80817f101d1b3f1a9b1c5ec268f28fffa2d75f9.zip |
Make PAM mandatory
It is present on all UNIX systems anyway, so let's simplify things.
We will need it for more proper session startup anyway.
Diffstat (limited to 'common/rfb/UnixPasswordValidator.cxx')
-rw-r--r-- | common/rfb/UnixPasswordValidator.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/rfb/UnixPasswordValidator.cxx b/common/rfb/UnixPasswordValidator.cxx index d0960794..ee7bc0da 100644 --- a/common/rfb/UnixPasswordValidator.cxx +++ b/common/rfb/UnixPasswordValidator.cxx @@ -25,9 +25,7 @@ #include <rfb/Configuration.h> #include <rfb/Exception.h> #include <rfb/UnixPasswordValidator.h> -#ifdef HAVE_PAM #include <rfb/pam.h> -#endif using namespace rfb; @@ -43,10 +41,6 @@ bool UnixPasswordValidator::validateInternal(SConnection * sc, const char *username, const char *password) { -#ifdef HAVE_PAM CharArray service(strDup(pamService.getData())); return do_pam_auth(service.buf, username, password); -#else - throw AuthFailureException("PAM not supported"); -#endif } |