KLdap
ldapsearch.cpp
32 [[nodiscard]] bool startSearch(const LdapDN &base, LdapUrl::Scope scope, const QString &filter, const QStringList &attributes, int pagesize, int count);
63 if (res != 0 && (res == -1 || (mConn->ldapErrorCode() != KLDAP_SUCCESS && mConn->ldapErrorCode() != KLDAP_SASL_BIND_IN_PROGRESS))) {
188bool LdapSearchPrivate::startSearch(const LdapDN &base, LdapUrl::Scope scope, const QString &filter, const QStringList &attributes, int pagesize, int count)
190 qCDebug(LDAP_CORE_LOG) << "search: base=" << base.toString() << "scope=" << static_cast<int>(scope) << "filter=" << filter << "attributes=" << attributes
301bool LdapSearch::search(const LdapDN &base, LdapUrl::Scope scope, const QString &filter, const QStringList &attributes, int pagesize, int count)
This class represents a connection to an LDAP server.
Definition ldapconnection.h:24
static void insert(LdapControls &list, const LdapControl &ctrl)
Inserts a unique control against a list of controls.
Definition ldapcontrol.cpp:123
static LdapControl createPageControl(int pagesize, const QByteArray &cookie=QByteArray())
Creates a paging search control.
Definition ldapcontrol.cpp:112
void continueSearch()
Continues the search (if you set count to non-zero in search(), and isFinished() is false)
Definition ldapsearch.cpp:307
QString errorString() const
Returns the error description of the search operation.
Definition ldapsearch.cpp:331
void setConnection(LdapConnection &connection)
Sets the connection for this object to use for searches from now onwards, regardless of the LDAP Url ...
Definition ldapsearch.cpp:258
bool isFinished() const
Returns true if the search is finished else returns false.
Definition ldapsearch.cpp:316
int error() const
Returns the error code of the search operation (0 if no error).
Definition ldapsearch.cpp:326
bool search(const LdapServer &server, const QStringList &attributes=QStringList(), int count=0)
Starts a search operation on the LDAP server.
Definition ldapsearch.cpp:275
void setClientControls(const LdapControls &ctrls)
Sets the client controls which will sent with each operation.
Definition ldapsearch.cpp:265
void setServerControls(const LdapControls &ctrls)
Sets the server controls which will sent with each operation.
Definition ldapsearch.cpp:270
A class that contains LDAP server connection settings.
Definition ldapserver.h:27
QString filter() const
Returns the filter string of the LDAP connection.
Definition ldapserver.cpp:130
LdapUrl::Scope scope() const
Returns the search scope of the LDAP connection.
Definition ldapserver.cpp:135
Extension extension(const QString &extension) const
Returns the specified extension.
Definition ldapurl.cpp:120
QString i18n(const char *text, const TYPE &arg...)
bool isEmpty() const const
void clear()
QFuture< void > filter(QThreadPool *pool, Sequence &sequence, KeepFunctor &&filterFunction)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:20 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:20 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.