summaryrefslogtreecommitdiffstats
path: root/kdesktop
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-06 22:51:08 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-06 22:51:08 -0500
commit2649b1ebf4eec141dc8e1642f9decac615ca5f29 (patch)
treeda10b6f28795c3f87ceff237c811456b5deea494 /kdesktop
parenta7afe91e652b20b764c78ca9508cdd8f0a27dd8f (diff)
downloadtdebase-2649b1ebf4eec141dc8e1642f9decac615ca5f29.tar.gz
tdebase-2649b1ebf4eec141dc8e1642f9decac615ca5f29.zip
Disable card-based login if Kerberos support was disabled at compile time
Diffstat (limited to 'kdesktop')
-rw-r--r--kdesktop/lock/lockdlg.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/kdesktop/lock/lockdlg.cc b/kdesktop/lock/lockdlg.cc
index 1be892e2a..d51536dca 100644
--- a/kdesktop/lock/lockdlg.cc
+++ b/kdesktop/lock/lockdlg.cc
@@ -975,10 +975,13 @@ void PasswordDlg::capsLocked()
void PasswordDlg::attemptCardLogin() {
#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
if (mCardLoginInProgress) {