diff options
author | Timothy Pearson <[email protected]> | 2016-09-06 22:51:08 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2016-09-06 22:51:08 -0500 |
commit | 2649b1ebf4eec141dc8e1642f9decac615ca5f29 (patch) | |
tree | da10b6f28795c3f87ceff237c811456b5deea494 /tdm/kfrontend | |
parent | a7afe91e652b20b764c78ca9508cdd8f0a27dd8f (diff) | |
download | tdebase-2649b1ebf4eec141dc8e1642f9decac615ca5f29.tar.gz tdebase-2649b1ebf4eec141dc8e1642f9decac615ca5f29.zip |
Disable card-based login if Kerberos support was disabled at compile time
Diffstat (limited to 'tdm/kfrontend')
-rw-r--r-- | tdm/kfrontend/kgreeter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp index 1143a8609..6ce76ebf3 100644 --- a/tdm/kfrontend/kgreeter.cpp +++ b/tdm/kfrontend/kgreeter.cpp @@ -861,10 +861,13 @@ KGreeter::verifySetUser( const TQString &user ) void KGreeter::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) { #ifdef HAVE_KRB5 - /* Make sure card logins are enabled before attempting one */ + // Make sure card logins are enabled before attempting one if (!LDAPManager::pkcsLoginEnabled()) { return; } +#else + // Don't enable card-based logins if Kerberos integration was disabled + return; #endif TQString login_name = TQString::null; |