summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/lockdlg.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-06 15:08:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-06 15:08:26 -0500
commita7afe91e652b20b764c78ca9508cdd8f0a27dd8f (patch)
treedfc424a94af940f4495eae44acef610c5cb7042c /kdesktop/lock/lockdlg.cc
parent3252800255e59562f401ad0df2cf37cd50d0b1a4 (diff)
downloadtdebase-a7afe91e.tar.gz
tdebase-a7afe91e.zip
Do not start card authentication unless PKCS logins were enabled
Rename UserList class in kgreeter.cpp to avoid conflict with TDE LDAP library class name
Diffstat (limited to 'kdesktop/lock/lockdlg.cc')
-rw-r--r--kdesktop/lock/lockdlg.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/kdesktop/lock/lockdlg.cc b/kdesktop/lock/lockdlg.cc
index 8202a7f68..1be892e2a 100644
--- a/kdesktop/lock/lockdlg.cc
+++ b/kdesktop/lock/lockdlg.cc
@@ -58,6 +58,10 @@
#include <X11/Xatom.h>
#include <fixx11h.h>
+#ifdef HAVE_KRB5
+#include <tde/libtdeldap.h>
+#endif
+
#ifndef AF_LOCAL
# define AF_LOCAL AF_UNIX
#endif
@@ -970,6 +974,13 @@ void PasswordDlg::capsLocked()
}
void PasswordDlg::attemptCardLogin() {
+#ifdef HAVE_KRB5
+ /* Make sure card logins are enabled before attempting one */
+ if (!LDAPManager::pkcsLoginEnabled()) {
+ return;
+ }
+#endif
+
if (mCardLoginInProgress) {
return;
}