KLDAP Library
ldapsearch.cpp
This class represents a connection to an LDAP server.
Definition ldapconnection.h:37
QString ldapErrorString() const
Returns the LDAP error string from the last operation.
Definition ldapconnection.cpp:391
QString saslErrorString() const
Returns the SASL error string from the last SASL operation.
Definition ldapconnection.cpp:159
int ldapErrorCode() const
Returns the LDAP error code from the last operation.
Definition ldapconnection.cpp:385
static void insert(LdapControls &list, const LdapControl &ctrl)
Inserts a unique control against a list of controls.
Definition ldapcontrol.cpp:145
static LdapControl createPageControl(int pagesize, const QByteArray &cookie=QByteArray())
Creates a paging search control.
Definition ldapcontrol.cpp:134
This class allows sending an ldap operation (search, rename, modify, delete, compare,...
Definition ldapoperation.h:44
void setClientControls(const LdapControls &ctrls)
Sets the client controls which will sent with each operation.
Definition ldapoperation.cpp:114
QByteArray serverCred() const
Returns the server response for a bind request (result returned RES_BIND).
Definition ldapoperation.cpp:164
int bind(const QByteArray &creds=QByteArray(), SASL_Callback_Proc *saslproc=NULL, void *data=NULL)
Binds to the server which specified in the connection object.
Definition ldapoperation.cpp:1204
void setServerControls(const LdapControls &ctrls)
Sets the server controls which will sent with each operation.
Definition ldapoperation.cpp:119
LdapObject object() const
Returns the result object if result() returned RES_SEARCH_ENTRY.
Definition ldapoperation.cpp:134
LdapControls controls() const
Returns the server controls from the returned ldap message (grabbed by result()).
Definition ldapoperation.cpp:139
LdapControls serverControls() const
Returns the server controls (which set by setServerControls()).
Definition ldapoperation.cpp:129
int waitForResult(int id, int msecs=-1)
Waits for up to msecs milliseconds for a result message from the LDAP server.
Definition ldapoperation.cpp:1309
int search(const LdapDN &base, LdapUrl::Scope scope, const QString &filter, const QStringList &attrs)
Starts a search operation with the given base DN, scope, filter and result attributes.
Definition ldapoperation.cpp:1216
This class starts a search operation on a LDAP server and returns the search values via a Qt signal.
Definition ldapsearch.h:46
void continueSearch()
Continues the search (if you set count to non-zero in search(), and isFinished() is false)
Definition ldapsearch.cpp:325
QString errorString() const
Returns the error description of the search operation.
Definition ldapsearch.cpp:347
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:271
int error() const
Returns the error code of the search operation (0 if no error).
Definition ldapsearch.cpp:342
void data(KLDAP::LdapSearch *search, const KLDAP::LdapObject &obj)
Emitted for each result object.
bool search(const LdapServer &server, const QStringList &attributes=QStringList(), int count=0)
Starts a search operation on the LDAP server.
Definition ldapsearch.cpp:288
bool isFinished()
Returns true if the search is finished else returns false.
Definition ldapsearch.cpp:332
void setClientControls(const LdapControls &ctrls)
Sets the client controls which will sent with each operation.
Definition ldapsearch.cpp:278
void setServerControls(const LdapControls &ctrls)
Sets the server controls which will sent with each operation.
Definition ldapsearch.cpp:283
QString filter() const
Returns the filter string of the LDAP connection.
Definition ldapserver.cpp:131
LdapUrl::Scope scope() const
Returns the search scope of the LDAP connection.
Definition ldapserver.cpp:136
QStringList attributes() const
Returns the attributes part of the LDAP url.
Definition ldapurl.cpp:101
Extension extension(const QString &extension) const
Returns the specified extension.
Definition ldapurl.cpp:139
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.