2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
8 #include "LDAPRequest.h"
9 #include "LDAPException.h"
11 #include "LDAPResult.h"
12 #include "LDAPExtResult.h"
16 LDAPExtResult::LDAPExtResult(const LDAPRequest* req, LDAPMessage* msg) :
18 DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPExtResult::LDAPExtResult()" << endl);
21 LDAP* lc = req->getConnection()->getSessionHandle();
22 int err=ldap_parse_extended_result(lc, msg, &oid, &data, 0);
23 if(err != LDAP_SUCCESS){
26 throw LDAPException(err);
31 m_data=string(data->bv_val, data->bv_len);
37 LDAPExtResult::~LDAPExtResult(){
38 DEBUG(LDAP_DEBUG_DESTROY,"LDAPExtResult::~LDAPExtResult()" << endl);
41 const string& LDAPExtResult::getResponseOid() const{
45 const string& LDAPExtResult::getResponse() const{