summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtdeldap.cpp')
-rw-r--r--src/libtdeldap.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp
index 823ff75..2ba3923 100644
--- a/src/libtdeldap.cpp
+++ b/src/libtdeldap.cpp
@@ -5467,6 +5467,17 @@ int LDAPManager::writeOpenSSLConfigurationFile(LDAPRealmConfig realmcfg, LDAPUse
return 0;
}
+bool LDAPManager::pkcsLoginEnabled() {
+ bool enabled;
+
+ KSimpleConfig* systemconfig = new KSimpleConfig( TQString::fromLatin1( KDE_CONFDIR "/ldap/ldapconfigrc" ));
+ systemconfig->setGroup(NULL);
+ enabled = systemconfig->readBoolEntry("EnablePKCS11Login", false);
+ delete systemconfig;
+
+ return enabled;
+}
+
int LDAPManager::bondRealm(TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr) {
LDAPCredentials admincreds;
admincreds.username = adminUserName;