summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/lockdlg.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-04-21 23:35:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-04-22 09:33:18 +0900
commitba97e2dc25f533f7942493e7f7d1203fdb64fc33 (patch)
treee7ee78ac96299de08dbace07f41183ffa48d398d /kdesktop/lock/lockdlg.cpp
parent7b6a9db8589b55d46f1de318a93db4bc1aff63a0 (diff)
downloadtdebase-ba97e2dc25f533f7942493e7f7d1203fdb64fc33.tar.gz
tdebase-ba97e2dc25f533f7942493e7f7d1203fdb64fc33.zip
Avoid direct usage of tdeldap library. This allows to remove hard dependency between packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdesktop/lock/lockdlg.cpp')
-rw-r--r--kdesktop/lock/lockdlg.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/kdesktop/lock/lockdlg.cpp b/kdesktop/lock/lockdlg.cpp
index d4b456a9e..e8d3c19b7 100644
--- a/kdesktop/lock/lockdlg.cpp
+++ b/kdesktop/lock/lockdlg.cpp
@@ -21,6 +21,7 @@
#include <kpushbutton.h>
#include <kseparator.h>
#include <kstandarddirs.h>
+#include <ksimpleconfig.h>
#include <tdeglobalsettings.h>
#include <tdeconfig.h>
#include <kiconloader.h>
@@ -58,9 +59,6 @@
#include <X11/Xatom.h>
#include <fixx11h.h>
-#ifdef HAVE_KRB5
-#include <libtdeldap.h>
-#endif
#ifndef AF_LOCAL
# define AF_LOCAL AF_UNIX
@@ -976,7 +974,12 @@ void PasswordDlg::capsLocked()
void PasswordDlg::attemptCardLogin() {
#ifdef HAVE_KRB5
// Make sure card logins are enabled before attempting one
- if (!LDAPManager::pkcsLoginEnabled()) {
+ KSimpleConfig *systemconfig = new KSimpleConfig( TQString::fromLatin1( KDE_CONFDIR "/ldap/ldapconfigrc" ));
+ systemconfig->setGroup(NULL);
+ bool enabled = systemconfig->readBoolEntry("EnablePKCS11Login", false);
+ delete systemconfig;
+ if (!enabled)
+ {
return;
}
#else