| 1 |
// $OpenLDAP$ |
| 2 |
/* |
| 3 |
* Copyright 2000-2024 The OpenLDAP Foundation, All Rights Reserved. |
| 4 |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef LDAP_MOD_DN_REQUEST_H |
| 8 |
#define LDAP_MOD_DN_REQUEST_H |
| 9 |
|
| 10 |
#include <LDAPRequest.h> |
| 11 |
|
| 12 |
class LDAPModDNRequest : LDAPRequest { |
| 13 |
|
| 14 |
public: |
| 15 |
LDAPModDNRequest(const LDAPModDNRequest& req); |
| 16 |
LDAPModDNRequest(const std::string& dn, const std::string& newRDN, |
| 17 |
bool deleteOld, const std::string& newParentDN, |
| 18 |
LDAPAsynConnection *connect, const LDAPConstraints *cons, |
| 19 |
bool isReferral=false, const LDAPRequest* parent=0); |
| 20 |
virtual ~LDAPModDNRequest(); |
| 21 |
|
| 22 |
virtual LDAPMessageQueue* sendRequest(); |
| 23 |
virtual LDAPRequest* followReferral(LDAPMsg* urls); |
| 24 |
|
| 25 |
private: |
| 26 |
std::string m_dn; |
| 27 |
std::string m_newRDN; |
| 28 |
std::string m_newParentDN; |
| 29 |
bool m_deleteOld; |
| 30 |
}; |
| 31 |
|
| 32 |
#endif // LDAP_MOD_DN_REQUEST_H |
| 33 |
|