Add method to get PKCS enablement status

pull/1/head
Timothy Pearson 8 years ago
parent e7d00722ef
commit e7fe109b39

@ -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;

@ -587,6 +587,7 @@ class LDAPManager : public TQObject {
static int writeClientCronFiles(TQString *errstr=0);
static int rehashClientPKCSCertificates(TQString *errstr=0);
static int writePAMFiles(LDAPPamConfig pamConfig, TQString *errstr=0);
static bool pkcsLoginEnabled();
static int bondRealm(TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr=0);
static int unbondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr=0);

Loading…
Cancel
Save