summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
Diffstat (limited to 'tdm')
-rw-r--r--tdm/kfrontend/kgreeter.cpp5
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;