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;
112 void setClientControls(
const LdapControls &ctrls );
116 void setServerControls(
const LdapControls &ctrls );
120 LdapControls clientControls()
const;
124 LdapControls serverControls()
const;
130 int bind(
const QByteArray &creds = QByteArray(),
131 SASL_Callback_Proc *saslproc = NULL,
void *data = NULL );
138 int bind_s( SASL_Callback_Proc *saslproc = NULL,
void *data = NULL );
145 const QString &filter,
const QStringList &attrs );
164 int add(
const LdapDN &dn,
const ModOps &ops );
172 int add_s(
const LdapDN &dn,
const ModOps &ops );
179 int rename(
const LdapDN &dn,
const QString &newRdn,
180 const QString &newSuperior,
bool deleteold =
true );
187 int rename_s(
const LdapDN &dn,
const QString &newRdn,
188 const QString &newSuperior,
bool deleteold =
true );
193 int del(
const LdapDN &dn );
199 int del_s(
const LdapDN &dn );
205 int modify(
const LdapDN &dn,
const ModOps &ops );
211 int modify_s(
const LdapDN &dn,
const ModOps &ops );
217 int compare(
const LdapDN &dn,
const QString &attr,
const QByteArray &value );
225 int compare_s(
const LdapDN &dn,
const QString &attr,
const QByteArray &value );
230 int exop(
const QString &oid,
const QByteArray &data );
236 int exop_s(
const QString &oid,
const QByteArray &data );
240 int abandon(
int id );
253 int waitForResult(
int id,
int msecs = -1 );
262 LdapControls controls()
const;
267 QByteArray extendedOid()
const;
272 QByteArray extendedData()
const;
278 QString matchedDn()
const;
283 QList<QByteArray> referrals()
const;
288 QByteArray serverCred()
const;
291 class LdapOperationPrivate;
292 LdapOperationPrivate *
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Fri Jan 17 2014 22:12:26 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.