KLDAP Library
21 #ifndef KLDAP_LDAPOPERATION_H
22 #define KLDAP_LDAPOPERATION_H
24 #include "kldap_export.h"
25 #include "ldapconnection.h"
26 #include "ldapcontrol.h"
27 #include "ldapobject.h"
29 #include "ldapserver.h"
32 #include <QtCore/QByteArray>
33 #include <QtCore/QList>
34 #include <QtCore/QString>
47 Mod_None, Mod_Add, Mod_Replace, Mod_Del
52 RES_SEARCH_ENTRY = 0x64,
53 RES_SEARCH_REFERENCE = 0x73,
54 RES_SEARCH_RESULT = 0x65,
61 RES_EXTENDED_PARTIAL = 0x79
67 QList<QByteArray> values;
70 typedef QList<ModOp> ModOps;
79 struct SASL_Credentials {
87 typedef int (SASL_Callback_Proc) ( SASL_Credentials &cred,
void *data );
90 SASL_Callback_Proc *proc;
92 SASL_Credentials creds;
111 void setClientControls(
const LdapControls &ctrls );
115 void setServerControls(
const LdapControls &ctrls );
119 LdapControls clientControls()
const;
123 LdapControls serverControls()
const;
129 int bind(
const QByteArray &creds = QByteArray(),
130 SASL_Callback_Proc *saslproc = NULL,
void *data = NULL );
137 int bind_s( SASL_Callback_Proc *saslproc = NULL,
void *data = NULL );
144 const QString &filter,
const QStringList &attrs );
159 int add(
const LdapDN &dn,
const ModOps &ops );
165 int add_s(
const LdapDN &dn,
const ModOps &ops );
172 int rename(
const LdapDN &dn,
const QString &newRdn,
173 const QString &newSuperior,
bool deleteold =
true );
180 int rename_s(
const LdapDN &dn,
const QString &newRdn,
181 const QString &newSuperior,
bool deleteold =
true );
186 int del(
const LdapDN &dn );
191 int del_s(
const LdapDN &dn );
196 int modify(
const LdapDN &dn,
const ModOps &ops );
202 int modify_s(
const LdapDN &dn,
const ModOps &ops );
208 int compare(
const LdapDN &dn,
const QString &attr,
const QByteArray &value );
216 int compare_s(
const LdapDN &dn,
const QString &attr,
const QByteArray &value );
221 int exop(
const QString &oid,
const QByteArray &data );
227 int exop_s(
const QString &oid,
const QByteArray &data );
231 int abandon(
int id );
244 int waitForResult(
int id,
int msecs = -1 );
253 LdapControls controls()
const;
258 QByteArray extendedOid()
const;
263 QByteArray extendedData()
const;
269 QString matchedDn()
const;
274 QList<QByteArray> referrals()
const;
279 QByteArray serverCred()
const;
282 class LdapOperationPrivate;
283 LdapOperationPrivate *
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:14 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.