KLdap
ldapoperation.h
120 [[nodiscard]] int bind(const QByteArray &creds = QByteArray(), SASL_Callback_Proc *saslproc = nullptr, void *data = nullptr);
133 [[nodiscard]] int search(const LdapDN &base, LdapUrl::Scope scope, const QString &filter, const QStringList &attrs);
167 [[nodiscard]] int rename(const LdapDN &dn, const QString &newRdn, const QString &newSuperior, bool deleteold = true);
This class represents a connection to an LDAP server.
Definition ldapconnection.h:24
void setClientControls(const LdapControls &ctrls)
Sets the client controls which will sent with each operation.
Definition ldapoperation.cpp:100
int bind_s(SASL_Callback_Proc *saslproc=nullptr, void *data=nullptr)
Binds to the server which specified in the connection object.
Definition ldapoperation.cpp:1171
QByteArray extendedOid() const
Returns the OID of the extended operation response (result returned RES_EXTENDED).
Definition ldapoperation.cpp:130
QString matchedDn() const
The server might supply a matched DN string in the message indicating how much of a name in a request...
Definition ldapoperation.cpp:140
QList< QByteArray > referrals() const
This function returns the referral strings from the parsed message (if any).
Definition ldapoperation.cpp:145
LdapControls clientControls() const
Returns the client controls (which set by setClientControls()).
Definition ldapoperation.cpp:110
QByteArray serverCred() const
Returns the server response for a bind request (result returned RES_BIND).
Definition ldapoperation.cpp:150
QByteArray extendedData() const
Returns the data from the extended operation response (result returned RES_EXTENDED).
Definition ldapoperation.cpp:135
int modify(const LdapDN &dn, const ModOps &ops)
Starts a modify operation on the given DN.
Definition ldapoperation.cpp:1231
int exop(const QString &oid, const QByteArray &data)
Starts an extended operation specified with oid and data.
Definition ldapoperation.cpp:1249
int rename(const LdapDN &dn, const QString &newRdn, const QString &newSuperior, bool deleteold=true)
Starts a modrdn operation on given DN, changing its RDN to newRdn, changing its parent to newSuperior...
Definition ldapoperation.cpp:1207
int rename_s(const LdapDN &dn, const QString &newRdn, const QString &newSuperior, bool deleteold=true)
Performs a modrdn operation on given DN, changing its RDN to newRdn, changing its parent to newSuperi...
Definition ldapoperation.cpp:1213
void setServerControls(const LdapControls &ctrls)
Sets the server controls which will sent with each operation.
Definition ldapoperation.cpp:105
int compare(const LdapDN &dn, const QString &attr, const QByteArray &value)
Starts a compare operation on the given DN, compares the specified attribute with the given value.
Definition ldapoperation.cpp:1243
LdapObject object() const
Returns the result object if result() returned RES_SEARCH_ENTRY.
Definition ldapoperation.cpp:120
int compare_s(const LdapDN &dn, const QString &attr, const QByteArray &value)
Performs a compare operation on the given DN, compares the specified attribute with the given value.
Definition ldapoperation.cpp:1255
int bind(const QByteArray &creds=QByteArray(), SASL_Callback_Proc *saslproc=nullptr, void *data=nullptr)
Binds to the server which specified in the connection object.
Definition ldapoperation.cpp:1165
int modify_s(const LdapDN &dn, const ModOps &ops)
Performs a modify operation on the given DN.
Definition ldapoperation.cpp:1237
int del(const LdapDN &dn)
Starts a delete operation on the given DN.
Definition ldapoperation.cpp:1219
LdapControls controls() const
Returns the server controls from the returned ldap message (grabbed by result()).
Definition ldapoperation.cpp:125
LdapControls serverControls() const
Returns the server controls (which set by setServerControls()).
Definition ldapoperation.cpp:115
int exop_s(const QString &oid, const QByteArray &data)
Performs an extended operation specified with oid and data.
Definition ldapoperation.cpp:1261
int waitForResult(int id, int msecs=-1)
Waits for up to msecs milliseconds for a result message from the LDAP server.
Definition ldapoperation.cpp:1267
int add_s(const LdapObject &object)
Adds the specified object to the LDAP database.
Definition ldapoperation.cpp:1189
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:1177
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.