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