Home | History | Annotate | Line # | Download | only in src
      1 /*	$NetBSD: LDAPModDNRequest.h,v 1.4 2025/09/05 21:16:14 christos Exp $	*/
      2 
      3 // $OpenLDAP$
      4 /*
      5  * Copyright 2000-2024 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