8 #ifndef LDAP_ASYN_CONNECTION_H 9 #define LDAP_ASYN_CONNECTION_H 87 void init(
const std::string& hostname,
int port);
118 const std::string& passwd=
"",
122 const std::string& cred,
150 const std::string& filter=
"objectClass=*",
152 bool attrsOnly=
false,
224 const std::string& newRDN,
225 bool delOldRDN=
false,
const std::string& newParentDN=
"",
266 const std::string&
getHost()
const;
336 #endif //LDAP_ASYN_CONNECTION_H LDAP * getSessionHandle() const
Definition: LDAPAsynConnection.cpp:292
void unbind()
Performs the UNBIND-operation on the destination server.
Definition: LDAPAsynConnection.cpp:263
bool m_cacheEnabled
Is caching enabled?
Definition: LDAPAsynConnection.h:334
This class is created for the asynchronous LDAP-operations.
Definition: LDAPMessageQueue.h:27
void init(const std::string &hostname, int port)
Initializes a connection to a server.
Definition: LDAPAsynConnection.cpp:48
LDAPMessageQueue * saslInteractiveBind(const std::string &mech, int flags=0, SaslInteractionHandler *sih=0, const LDAPConstraints *cons=0)
Definition: LDAPAsynConnection.cpp:117
int getPort() const
Definition: LDAPAsynConnection.cpp:302
static const int SEARCH_BASE
Constant for the Search-Operation to indicate a Base-Level Search.
Definition: LDAPAsynConnection.h:51
virtual ~LDAPAsynConnection()
Definition: LDAPAsynConnection.cpp:46
This class represents an asynchronous connection to an LDAP-Server.
Definition: LDAPAsynConnection.h:45
void abandon(LDAPMessageQueue *q)
End an outstanding request.
Definition: LDAPAsynConnection.cpp:248
This container class is used to store multiple LDAPUrl-objects.
Definition: LDAPUrlList.h:16
Definition: SaslInteractionHandler.h:13
LDAPAsynConnection * referralConnect(const LDAPUrlList &urls, LDAPUrlList::const_iterator &usedUrl, const LDAPConstraints *cons) const
This method is used internally for automatic referral chasing.
Definition: LDAPAsynConnection.cpp:307
This container class is used to store multiple LDAPModification-objects.
Definition: LDAPModList.h:18
void setConstraints(LDAPConstraints *cons)
Change the default constraints of the connection.
Definition: LDAPAsynConnection.cpp:278
Represents the name an value(s) of an Attribute.
Definition: LDAPAttribute.h:21
void start_tls()
Start TLS on this connection.
Definition: LDAPAsynConnection.cpp:79
LDAPMessageQueue * compare(const std::string &dn, const LDAPAttribute &attr, const LDAPConstraints *cons=0)
Perform the COMPARE-operation on an attribute.
Definition: LDAPAsynConnection.cpp:170
LDAPMessageQueue * saslBind(const std::string &mech, const std::string &cred, const LDAPConstraints *cons=0)
Definition: LDAPAsynConnection.cpp:101
const LDAPConstraints * getConstraints() const
Get the default constraints of the connection.
Definition: LDAPAsynConnection.cpp:283
ListType::const_iterator const_iterator
Definition: LDAPUrlList.h:20
LDAPMessageQueue * rename(const std::string &dn, const std::string &newRDN, bool delOldRDN=false, const std::string &newParentDN="", const LDAPConstraints *cons=0)
modify the DN of an entry
Definition: LDAPAsynConnection.cpp:213
This class is used to store every kind of LDAP Entry.
Definition: LDAPEntry.h:19
This class is used to analyze and store LDAP-Urls as returned by a LDAP-Server as Referrals and Searc...
Definition: LDAPUrl.h:22
LDAPMessageQueue * add(const LDAPEntry *le, const LDAPConstraints *const=0)
Add an entry to the directory.
Definition: LDAPAsynConnection.cpp:185
Container class to store multiple string-objects.
Definition: StringList.h:15
TlsOptions getTlsOptions() const
Definition: LDAPAsynConnection.cpp:288
LDAPMessageQueue * modify(const std::string &dn, const LDAPModList *modlist, const LDAPConstraints *cons=0)
Apply modifications to attributes of an entry.
Definition: LDAPAsynConnection.cpp:199
const std::string & getHost() const
Definition: LDAPAsynConnection.cpp:297
LDAPMessageQueue * bind(const std::string &dn="", const std::string &passwd="", const LDAPConstraints *cons=0)
Simple authentication to a LDAP-Server.
Definition: LDAPAsynConnection.cpp:86
static const int SEARCH_ONE
Constant for the Search-Operation to indicate a One-Level Search.
Definition: LDAPAsynConnection.h:57
void initialize(const std::string &uri)
Initializes a connection to a server.
Definition: LDAPAsynConnection.cpp:68
LDAPMessageQueue * search(const std::string &base="", int scope=0, const std::string &filter="objectClass=*", const StringList &attrs=StringList(), bool attrsOnly=false, const LDAPConstraints *cons=0)
Performing a search on a directory tree.
Definition: LDAPAsynConnection.cpp:136
static const int SEARCH_SUB
Constant for the Search-Operation to indicate a subtree Search.
Definition: LDAPAsynConnection.h:63
LDAPMessageQueue * del(const std::string &dn, const LDAPConstraints *cons=0)
Delete an entry from the directory.
Definition: LDAPAsynConnection.cpp:156
Class to access the global (and connection specific) TLS Settings To access the global TLS Settings j...
Definition: TlsOptions.h:21
LDAPMessageQueue * extOperation(const std::string &oid, const std::string &value="", const LDAPConstraints *cons=0)
Perform a LDAP extended Operation.
Definition: LDAPAsynConnection.cpp:233
LDAPAsynConnection(const std::string &url=std::string("localhost"), int port=0, LDAPConstraints *cons=new LDAPConstraints())
Construtor that initializes a connection to a server.
This class represents some options that can be set for a LDAPConnection operation.
Definition: LDAPConstraints.h:27