diff --git a/CMakeLists.txt b/CMakeLists.txt index 87e4566bee920d9b24c7e177333e0747010953cc..9fd0e48ba778f44b091859aea65d45f2ef05faf3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ set(KMIME_LIB_VERSION "5.16.40") set(KIMAP_LIB_VERSION "5.16.40") set(KPIMTEXTEDIT_LIB_VERSION "5.16.40") set(AKONADI_VERSION "5.16.40") -set(KLDAP_LIB_VERSION "5.16.40") +set(KLDAP_LIB_VERSION "5.16.42") set(GRANTLEETHEME_LIB_VERSION "5.16.40") find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets DBus Network Test Xml PrintSupport) diff --git a/src/pimcommonakonadi/ldap/ldapsearchdialog.cpp b/src/pimcommonakonadi/ldap/ldapsearchdialog.cpp index 9be36114d1e1567fe20f04f4d64396b835b37c5d..4af6d0d9a4e404a67fb389d4e0373795eda659d2 100644 --- a/src/pimcommonakonadi/ldap/ldapsearchdialog.cpp +++ b/src/pimcommonakonadi/ldap/ldapsearchdialog.cpp @@ -12,6 +12,7 @@ #include #include +#include #include #include @@ -670,10 +671,13 @@ void LdapSearchDialog::Private::restoreSettings() mIsConfigured = true; auto *clientSearchConfig = new KLDAP::LdapClientSearchConfig; for (int j = 0; j < mNumHosts; ++j) { - KLDAP::LdapServer ldapServer; auto *ldapClient = new KLDAP::LdapClient(0, q); - clientSearchConfig->readConfig(ldapServer, group, j, true); - ldapClient->setServer(ldapServer); + auto *job = new KLDAP::LdapSearchClientReadConfigServerJob(q); + job->setCurrentIndex(j); + job->setActive(true); + job->setConfig(group); + job->setLdapClient(ldapClient); + job->start(); QStringList attrs; QMap::ConstIterator end(adrbookattr2ldap().constEnd());