File indexing completed on 2025-01-26 04:52:12
0001 /* 0002 SPDX-FileCopyrightText: 2006 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "ldapobject.h" 0010 #include "ldapsearch.h" 0011 #include <QObject> 0012 0013 using namespace KLDAPCore; 0014 0015 class KLdapTest : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit KLdapTest(QObject *parent = nullptr); 0020 ~KLdapTest() override = default; 0021 0022 private Q_SLOTS: 0023 // void testKLdap(); 0024 0025 void initTestCase(); 0026 void cleanupTestCase(); 0027 0028 void testLdapUrl(); 0029 void testBer(); 0030 void testLdapConnection(); 0031 void testLdapSearch(); 0032 void testLdapDN(); 0033 void testLdapModel(); 0034 0035 private: 0036 void searchResult(KLDAPCore::LdapSearch *search); 0037 void searchData(KLDAPCore::LdapSearch *search, const KLDAPCore::LdapObject &obj); 0038 QString m_url; 0039 LdapSearch *m_search = nullptr; 0040 LdapObjects m_objects; 0041 };