diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:23:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:23:53 +0000 |
commit | c000cad09d0b54c455c99271bfb996c2dfe13073 (patch) | |
tree | e47ca809ed512d7fb43ec3d555753b1b658e9819 /contrib/ldapc++/src/LDAPModDNRequest.h | |
parent | Initial commit. (diff) | |
download | openldap-c000cad09d0b54c455c99271bfb996c2dfe13073.tar.xz openldap-c000cad09d0b54c455c99271bfb996c2dfe13073.zip |
Adding upstream version 2.4.47+dfsg.upstream/2.4.47+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'contrib/ldapc++/src/LDAPModDNRequest.h')
-rw-r--r-- | contrib/ldapc++/src/LDAPModDNRequest.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/ldapc++/src/LDAPModDNRequest.h b/contrib/ldapc++/src/LDAPModDNRequest.h new file mode 100644 index 0000000..fb32820 --- /dev/null +++ b/contrib/ldapc++/src/LDAPModDNRequest.h @@ -0,0 +1,33 @@ +// $OpenLDAP$ +/* + * Copyright 2000-2018 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + +#ifndef LDAP_MOD_DN_REQUEST_H +#define LDAP_MOD_DN_REQUEST_H + +#include <LDAPRequest.h> + +class LDAPModDNRequest : LDAPRequest { + + public: + LDAPModDNRequest(const LDAPModDNRequest& req); + LDAPModDNRequest(const std::string& dn, const std::string& newRDN, + bool deleteOld, const std::string& newParentDN, + LDAPAsynConnection *connect, const LDAPConstraints *cons, + bool isReferral=false, const LDAPRequest* parent=0); + virtual ~LDAPModDNRequest(); + + virtual LDAPMessageQueue* sendRequest(); + virtual LDAPRequest* followReferral(LDAPMsg* urls); + + private: + std::string m_dn; + std::string m_newRDN; + std::string m_newParentDN; + bool m_deleteOld; +}; + +#endif // LDAP_MOD_DN_REQUEST_H + |